Skip to content

Commit 64ea918

Browse files
authored
Nullable newInput on ContinueAsNew (#95)
1 parent 55a6126 commit 64ea918

File tree

3 files changed

+3
-2
lines changed

3 files changed

+3
-2
lines changed

CHANGELOG.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,7 @@
66
- Durable Functions class-based syntax now resolves `ITaskActivity` instances from `IServiceProvider`, if available there.
77
- `DurableTaskClient` methods have been touched up to ensure `CancellationToken` is included, as well as is the last parameter.
88
- Removed obsolete/unimplemented local lambda activity calls from `TaskOrchestrationContext`
9+
- Input is now an optional parameter on `TaskOrchestrationContext.ContinueAsNew`
910

1011
## v1.0.0-rc.1
1112

src/Abstractions/TaskOrchestrationContext.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -333,7 +333,7 @@ public Task CallSubOrchestratorAsync(
333333
/// history when the orchestration instance restarts. If <c>false</c>, any unprocessed
334334
/// external events will be discarded when the orchestration instance restarts.
335335
/// </param>
336-
public abstract void ContinueAsNew(object newInput, bool preserveUnprocessedEvents = true);
336+
public abstract void ContinueAsNew(object? newInput = null, bool preserveUnprocessedEvents = true);
337337

338338
/// <summary>
339339
/// Creates a new GUID that is safe for replay within an orchestration or operation.

src/Worker/Core/Shims/TaskOrchestrationContextWrapper.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -227,7 +227,7 @@ public override void SetCustomStatus(object? customStatus)
227227
}
228228

229229
/// <inheritdoc/>
230-
public override void ContinueAsNew(object newInput, bool preserveUnprocessedEvents = true)
230+
public override void ContinueAsNew(object? newInput = null, bool preserveUnprocessedEvents = true)
231231
{
232232
this.innerContext.ContinueAsNew(newInput);
233233

0 commit comments

Comments
 (0)