From 9c7d2fc5961e0796bd79fb14457b6bb32af7cd82 Mon Sep 17 00:00:00 2001 From: Hal Spang Date: Thu, 8 May 2025 15:28:11 -0700 Subject: [PATCH] Allow version in TaskOrchestrationContext Signed-off-by: Hal Spang --- CHANGELOG.md | 2 ++ src/Abstractions/TaskOrchestrationContext.cs | 4 ++-- 2 files changed, 4 insertions(+), 2 deletions(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index 7f7551559..d08eb3a65 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -7,6 +7,8 @@ - Add specific logging for NotFound error on worker connection by @halspang in ([#413](https://github.com/microsoft/durabletask-dotnet/pull/413)) - Add user agent header to gRPC called in ([#417](https://github.com/microsoft/durabletask-dotnet/pull/417)) - Enrich User-Agent Header in gRPC Metadata to indicate Client or Worker as caller ([#421](https://github.com/microsoft/durabletask-dotnet/pull/421)) +- Add ability to set the version in `TaskOrchestrationContext` by @halspang in ([#424](https://github.com/microsoft/durabletask-dotnet/pull/424)) + ## v1.10.0 - 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)) diff --git a/src/Abstractions/TaskOrchestrationContext.cs b/src/Abstractions/TaskOrchestrationContext.cs index 95cc116ed..f050cfbea 100644 --- a/src/Abstractions/TaskOrchestrationContext.cs +++ b/src/Abstractions/TaskOrchestrationContext.cs @@ -61,9 +61,9 @@ public abstract class TaskOrchestrationContext public abstract bool IsReplaying { get; } /// - /// Gets the version of the current orchestration instance, which was set when the instance was created. + /// Gets or sets the version of the current orchestration instance, which was set when the instance was created. /// - public virtual string Version => string.Empty; + public virtual string Version { get; protected internal set; } = string.Empty; /// /// Gets the configuration settings for the orchestration context.