NonConcurrentSynchronizationContext(Boolean) Constructor
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
Initializes a new instance of the NonConcurrentSynchronizationContext class.
public:
NonConcurrentSynchronizationContext(bool sticky);
public NonConcurrentSynchronizationContext (bool sticky);
new Microsoft.VisualStudio.Threading.NonConcurrentSynchronizationContext : bool -> Microsoft.VisualStudio.Threading.NonConcurrentSynchronizationContext
Public Sub New (sticky As Boolean)
Parameters
- sticky
- Boolean
A value indicating whether to set this instance as Current when invoking delegates.
This has the effect that async methods that are invoked on this SynchronizationContext
will execute their continuations on this SynchronizationContext as well unless they use ConfigureAwait(Boolean) with false
as the argument.