PipeOptions.UseSynchronizationContext Property

Definition

Gets a value that determines if asynchronous callbacks and continuations should be executed on the SynchronizationContext they were captured on. This takes precedence over the schedulers specified in ReaderScheduler and WriterScheduler.

public bool UseSynchronizationContext { get; }

Property Value

true if asynchronous callbacks and continuations should be executed on the SynchronizationContext they were captured on; otherwise, false.

Applies to

产品 版本
.NET 8 (package-provided), 9 (package-provided), 9, 10 (package-provided), 10
.NET Standard 2.0 (package-provided)