diff --git a/src/Orleans.Serialization/Invocation/ResponseCompletionSource.cs b/src/Orleans.Serialization/Invocation/ResponseCompletionSource.cs index bdfabec2ff9..f622c701740 100644 --- a/src/Orleans.Serialization/Invocation/ResponseCompletionSource.cs +++ b/src/Orleans.Serialization/Invocation/ResponseCompletionSource.cs @@ -10,7 +10,7 @@ namespace Orleans.Serialization.Invocation /// public sealed class ResponseCompletionSource : IResponseCompletionSource, IValueTaskSource, IValueTaskSource { - private ManualResetValueTaskSourceCore _core; + private ManualResetValueTaskSourceCore _core = new() { RunContinuationsAsynchronously = true }; /// /// Returns this instance as a . @@ -113,7 +113,7 @@ void IValueTaskSource.GetResult(short token) /// The underlying result type. public sealed class ResponseCompletionSource : IResponseCompletionSource, IValueTaskSource, IValueTaskSource { - private ManualResetValueTaskSourceCore _core; + private ManualResetValueTaskSourceCore _core = new() { RunContinuationsAsynchronously = true }; /// /// Returns this instance as a . @@ -255,4 +255,4 @@ void IValueTaskSource.GetResult(short token) } } } -} \ No newline at end of file +}