-
Notifications
You must be signed in to change notification settings - Fork 53
Add New Property Properties to TaskOrchestrationContext
#415
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Changes from 6 commits
2e29f04
5b9c683
9206ee3
390fc5d
498cc73
b73cd05
ba5e5ea
ad738de
9d1aab8
f029208
6e5a45c
dadad96
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -1,2 +1,2 @@ | ||
| # The following files were downloaded from branch main at 2025-03-24 23:37:31 UTC | ||
| https://raw.githubusercontent.com/microsoft/durabletask-protobuf/c85ef11430ff8e10e21105abb545b0803bb86c66/protos/orchestrator_service.proto | ||
| # The following files were downloaded from branch main at 2025-04-23 23:27:00 UTC | ||
| https://raw.githubusercontent.com/microsoft/durabletask-protobuf/fbe5bb20835678099fc51a44993ed9b045dee5a6/protos/orchestrator_service.proto |
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -38,9 +38,31 @@ public TaskOrchestrationContextWrapper( | |
| OrchestrationContext innerContext, | ||
| OrchestrationInvocationContext invocationContext, | ||
| object? deserializedInput) | ||
| : this(innerContext, invocationContext, deserializedInput, new Dictionary<string, object?>()) | ||
| { | ||
| } | ||
|
|
||
| /// <summary> | ||
| /// Initializes a new instance of the <see cref="TaskOrchestrationContextWrapper"/> class. | ||
| /// </summary> | ||
| /// <param name="innerContext">The inner orchestration context.</param> | ||
| /// <param name="invocationContext">The invocation context.</param> | ||
| /// <param name="deserializedInput">The deserialized input.</param> | ||
| /// <param name="properties">The configuration for context.</param> | ||
| public TaskOrchestrationContextWrapper( | ||
nytian marked this conversation as resolved.
Show resolved
Hide resolved
|
||
| OrchestrationContext innerContext, | ||
| OrchestrationInvocationContext invocationContext, | ||
| object? deserializedInput, | ||
| IEnumerable<KeyValuePair<string, object?>> properties) | ||
| { | ||
| this.innerContext = Check.NotNull(innerContext); | ||
| this.invocationContext = Check.NotNull(invocationContext); | ||
| if (properties is null) | ||
| { | ||
| throw new ArgumentNullException(nameof(properties)); | ||
| } | ||
|
|
||
| this.Properties = properties.ToDictionary(pair => pair.Key, pair => pair.Value); | ||
|
||
| this.logger = this.CreateReplaySafeLogger("Microsoft.DurableTask"); | ||
| this.deserializedInput = deserializedInput; | ||
| } | ||
|
|
@@ -60,6 +82,11 @@ public TaskOrchestrationContextWrapper( | |
| /// <inheritdoc/> | ||
| public override DateTime CurrentUtcDateTime => this.innerContext.CurrentUtcDateTime; | ||
|
|
||
| /// <summary> | ||
| /// Gets the configuration settings for the orchestration. | ||
| /// </summary> | ||
| public override IDictionary<string, object?> Properties { get; } = new Dictionary<string, object?>(); | ||
nytian marked this conversation as resolved.
Outdated
Show resolved
Hide resolved
|
||
|
|
||
| /// <inheritdoc/> | ||
| public override TaskOrchestrationEntityFeature Entities | ||
| { | ||
|
|
||
Uh oh!
There was an error while loading. Please reload this page.