@@ -53,16 +53,12 @@ public TaskOrchestrationContextWrapper(
5353 OrchestrationContext innerContext ,
5454 OrchestrationInvocationContext invocationContext ,
5555 object ? deserializedInput ,
56- IEnumerable < KeyValuePair < string , object ? > > properties )
56+ Dictionary < string , object ? > properties )
5757 {
5858 this . innerContext = Check . NotNull ( innerContext ) ;
5959 this . invocationContext = Check . NotNull ( invocationContext ) ;
60- if ( properties is null )
61- {
62- throw new ArgumentNullException ( nameof ( properties ) ) ;
63- }
60+ this . Properties = Check . NotNull ( properties ) ;
6461
65- this . Properties = properties . ToDictionary ( pair => pair . Key , pair => pair . Value ) ;
6662 this . logger = this . CreateReplaySafeLogger ( "Microsoft.DurableTask" ) ;
6763 this . deserializedInput = deserializedInput ;
6864 }
@@ -85,7 +81,7 @@ public TaskOrchestrationContextWrapper(
8581 /// <summary>
8682 /// Gets the configuration settings for the orchestration.
8783 /// </summary>
88- public override IDictionary < string , object ? > Properties { get ; } = new Dictionary < string , object ? > ( ) ;
84+ public override IReadOnlyDictionary < string , object ? > Properties { get ; } = new Dictionary < string , object ? > ( ) ;
8985
9086 /// <inheritdoc/>
9187 public override TaskOrchestrationEntityFeature Entities
0 commit comments