Skip to content

Commit f78dd20

Browse files
committed
Refactor TaskOrchestrationContextWrapper to use ImmutableDictionary for tags
1 parent 93adb1d commit f78dd20

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

src/Worker/Core/Shims/TaskOrchestrationContextWrapper.cs

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
11
// Copyright (c) Microsoft Corporation.
22
// Licensed under the MIT License.
33

4+
using System.Collections.Immutable;
45
using System.Globalization;
56
using System.Security.Cryptography;
67
using System.Text;
@@ -138,7 +139,7 @@ public override async Task<T> CallActivityAsync<T>(
138139

139140
try
140141
{
141-
IDictionary<string, string> tags = new Dictionary<string, string>();
142+
IDictionary<string, string> tags = ImmutableDictionary<string, string>.Empty;
142143
if (options is TaskOptions callActivityOptions)
143144
{
144145
if (callActivityOptions.Tags is not null)

0 commit comments

Comments
 (0)