Skip to content

Commit 54a5df6

Browse files
committed
Add ContinueAsNew(ContinueAsNewOptions) override to FunctionsOrchestrationContext
Forward the new ContinueAsNew overload that accepts ContinueAsNewOptions (with NewVersion) to the inner context. Without this override, the base class default silently drops the options, preventing version migration via ContinueAsNew from working in Azure Functions isolated worker. Depends on: microsoft/durabletask-dotnet#682 (adds ContinueAsNewOptions) Requires bumping Microsoft.DurableTask.Worker.Grpc to the version that includes ContinueAsNewOptions.
1 parent 611b0be commit 54a5df6

1 file changed

Lines changed: 6 additions & 0 deletions

File tree

src/Worker.Extensions.DurableTask/FunctionsOrchestrationContext.cs

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -127,6 +127,12 @@ public override void ContinueAsNew(object? newInput = null, bool preserveUnproce
127127
this.innerContext.ContinueAsNew(newInput, preserveUnprocessedEvents);
128128
}
129129

130+
public override void ContinueAsNew(ContinueAsNewOptions? options, object? newInput, bool preserveUnprocessedEvents)
131+
{
132+
this.EnsureLegalAccess();
133+
this.innerContext.ContinueAsNew(options, newInput, preserveUnprocessedEvents);
134+
}
135+
130136
public override Task CreateTimer(DateTime fireAt, CancellationToken cancellationToken)
131137
{
132138
this.EnsureLegalAccess();

0 commit comments

Comments
 (0)