Skip to content

Adapt to latest ResilientFunctions API changes#11

Merged
stidsborg merged 2 commits into
mainfrom
latest_resilient_functions
May 30, 2026
Merged

Adapt to latest ResilientFunctions API changes#11
stidsborg merged 2 commits into
mainfrom
latest_resilient_functions

Conversation

@stidsborg
Copy link
Copy Markdown
Owner

Summary

Updates the consuming code to compile and run against the latest Cleipnir.ResilientFunctions submodule, which changed two APIs:

  • Settings constructor dropped leaseLength and added replicaHeartbeatFrequency (also shifting positional argument order).
  • EffectId no longer converts implicitly from int.

Changes

  • Cleipnir/Options.cs — replaced LeaseLength with ReplicaHeartbeatFrequency (property, constructor parameter, XML doc), wired it through Merge and MapToSettings, and switched MapToSettings to named arguments. Also fixed a latent bug where Merge silently dropped UtcNow.
  • Cleipnir/FlowsContainer.cs — the logger-injection path rebuilt Options positionally and dropped several settings; switched to named arguments so no options are lost.
  • Tests (FunctionRegistrationTests, ParamlessFlowsTests, UnitFlowsTests) — construct InitialEffect with an EffectId via 0.ToEffectId().
  • Samples (Cleipnir.Sample.AspNet, Cleipnir.Sample.Presentation.AspNet) — use replicaHeartbeatFrequency instead of leaseLength.

Testing

  • dotnet build Cleipnir.NET.sln succeeds.

🤖 Generated with Claude Code

stidsborg and others added 2 commits May 30, 2026 12:10
The Settings constructor dropped leaseLength and added
replicaHeartbeatFrequency, and EffectId no longer converts implicitly
from int.

- Options: replace LeaseLength with ReplicaHeartbeatFrequency and pass
  Settings args by name; also stop dropping UtcNow in Merge
- FlowsContainer: rebuild Options by name so no options are dropped
- Tests: construct InitialEffect with EffectId via 0.ToEffectId()
- Samples: use replicaHeartbeatFrequency instead of leaseLength

Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
@stidsborg stidsborg merged commit 1e1d57f into main May 30, 2026
1 check passed
@stidsborg stidsborg deleted the latest_resilient_functions branch May 30, 2026 10:19
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant