PostSharpAPI ReferencePost­Sharp.​Patterns.​ThreadingDispatched­Execution­ModeNon­Blocking­Context­Switch
Open sandboxFocus

DispatchedExecutionMode.NonBlockingContextSwitch Field

If the caller context equals the target context (e.g. if the caller is the UI thread and the object is affine to the UI thread), the method is invoked immediately in the current context in a blocking way. Otherwise, if a context switch is necessary, the method call is enqueued for later execution and the caller continues without waiting. Methods that have a non-void return type or ref or out parameters cannot be dispatched in non-blocking mode.

Namespace: PostSharp.Patterns.Threading
Assembly: PostSharp.Patterns.Threading.dll
Syntax
public const DispatchedExecutionMode NonBlockingContextSwitch
Returns
Type Description
DispatchedExecutionMode