Skip to content

Commit 9206ee3

Browse files
committed
update summary and also properties
1 parent 5b9c683 commit 9206ee3

File tree

3 files changed

+5
-4
lines changed

3 files changed

+5
-4
lines changed

src/Worker/Core/Shims/DurableTaskShimFactory.cs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -107,6 +107,7 @@ public TaskOrchestration CreateOrchestration(
107107
{
108108
Check.NotDefault(name);
109109
Check.NotNull(orchestrator);
110+
Check.NotNull(properties);
110111
OrchestrationInvocationContext context = new(name, this.options, this.loggerFactory, parent);
111112
return new TaskOrchestrationShim(context, orchestrator, properties);
112113
}

src/Worker/Core/Shims/TaskOrchestrationContextWrapper.cs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@ sealed partial class TaskOrchestrationContextWrapper : TaskOrchestrationContext
2323
readonly OrchestrationInvocationContext invocationContext;
2424
readonly ILogger logger;
2525
readonly object? deserializedInput;
26-
readonly IDictionary<string, object?> properties = new Dictionary<string, object?>();
26+
readonly Dictionary<string, object?> properties = new Dictionary<string, object?>();
2727

2828
int newGuidCounter;
2929
object? customStatus;
@@ -61,9 +61,9 @@ public TaskOrchestrationContextWrapper(
6161
{
6262
this.innerContext = Check.NotNull(innerContext);
6363
this.invocationContext = Check.NotNull(invocationContext);
64+
this.properties = Check.NotNull(properties);
6465
this.logger = this.CreateReplaySafeLogger("Microsoft.DurableTask");
6566
this.deserializedInput = deserializedInput;
66-
this.properties = properties;
6767
}
6868

6969
/// <inheritdoc/>

src/Worker/Core/Shims/TaskOrchestrationShim.cs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -43,17 +43,17 @@ public TaskOrchestrationShim(
4343
/// </summary>
4444
/// <param name="invocationContext">The invocation context for this orchestration.</param>
4545
/// <param name="implementation">The orchestration's implementation.</param>
46-
/// <param name="properties">Configuration for the orchestration</param>
46+
/// <param name="properties">Configuration for the orchestration.</param>
4747
public TaskOrchestrationShim(
4848
OrchestrationInvocationContext invocationContext,
4949
ITaskOrchestrator implementation,
5050
Dictionary<string, object?> properties)
5151
{
5252
this.invocationContext = Check.NotNull(invocationContext);
5353
this.implementation = Check.NotNull(implementation);
54+
this.properties = Check.NotNull(properties);
5455

5556
this.logger = Logs.CreateWorkerLogger(this.invocationContext.LoggerFactory, "Orchestrations");
56-
this.properties = properties;
5757
}
5858

5959
DataConverter DataConverter => this.invocationContext.Options.DataConverter;

0 commit comments

Comments
 (0)