Skip to content

Commit 9c7d2fc

Browse files
committed
Allow version in TaskOrchestrationContext
Signed-off-by: Hal Spang <[email protected]>
1 parent 6a7880d commit 9c7d2fc

File tree

2 files changed

+4
-2
lines changed

2 files changed

+4
-2
lines changed

CHANGELOG.md

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,8 @@
77
- Add specific logging for NotFound error on worker connection by @halspang in ([#413](https://github.com/microsoft/durabletask-dotnet/pull/413))
88
- Add user agent header to gRPC called in ([#417](https://github.com/microsoft/durabletask-dotnet/pull/417))
99
- Enrich User-Agent Header in gRPC Metadata to indicate Client or Worker as caller ([#421](https://github.com/microsoft/durabletask-dotnet/pull/421))
10+
- Add ability to set the version in `TaskOrchestrationContext` by @halspang in ([#424](https://github.com/microsoft/durabletask-dotnet/pull/424))
11+
1012
## v1.10.0
1113

1214
- Update DurableTask.Core to v3.1.0 and Bump version to v1.10.0 by @nytian in ([#411](https://github.com/microsoft/durabletask-dotnet/pull/411))

src/Abstractions/TaskOrchestrationContext.cs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -61,9 +61,9 @@ public abstract class TaskOrchestrationContext
6161
public abstract bool IsReplaying { get; }
6262

6363
/// <summary>
64-
/// Gets the version of the current orchestration instance, which was set when the instance was created.
64+
/// Gets or sets the version of the current orchestration instance, which was set when the instance was created.
6565
/// </summary>
66-
public virtual string Version => string.Empty;
66+
public virtual string Version { get; protected internal set; } = string.Empty;
6767

6868
/// <summary>
6969
/// Gets the configuration settings for the orchestration context.

0 commit comments

Comments
 (0)