AsyncFlowControl AsyncFlowControl AsyncFlowControl AsyncFlowControl Struct

Definition

Provides the functionality to restore the migration, or flow, of the execution context between threads.

public value class AsyncFlowControl : IDisposable
public struct AsyncFlowControl : IDisposable
type AsyncFlowControl = struct
    interface IDisposable
Public Structure AsyncFlowControl
Implements IDisposable
Inheritance
AsyncFlowControlAsyncFlowControlAsyncFlowControlAsyncFlowControl
Implements

Remarks

An execution context contains all execution-related information for a logical thread. The flow of the execution context to other threads can be prevented by using the ExecutionContext.SuppressFlow method, which returns an AsyncFlowControl structure. The Undo method of the returned AsyncFlowControl structure can be used to undo the flow suppression. The AsyncFlowControl structure must be used on the same thread on which it was created.

Methods

Dispose() Dispose() Dispose() Dispose()

Releases all resources used by the current instance of the AsyncFlowControl class.

Equals(Object) Equals(Object) Equals(Object) Equals(Object)

Determines whether the specified object is equal to the current AsyncFlowControl structure.

Equals(AsyncFlowControl) Equals(AsyncFlowControl) Equals(AsyncFlowControl) Equals(AsyncFlowControl)

Determines whether the specified AsyncFlowControl structure is equal to the current AsyncFlowControl structure.

GetHashCode() GetHashCode() GetHashCode() GetHashCode()

Gets a hash code for the current AsyncFlowControl structure.

Undo() Undo() Undo() Undo()

Restores the flow of the execution context between threads.

Operators

Equality(AsyncFlowControl, AsyncFlowControl) Equality(AsyncFlowControl, AsyncFlowControl) Equality(AsyncFlowControl, AsyncFlowControl) Equality(AsyncFlowControl, AsyncFlowControl)

Compares two AsyncFlowControl structures to determine whether they are equal.

Inequality(AsyncFlowControl, AsyncFlowControl) Inequality(AsyncFlowControl, AsyncFlowControl) Inequality(AsyncFlowControl, AsyncFlowControl) Inequality(AsyncFlowControl, AsyncFlowControl)

Compares two AsyncFlowControl structures to determine whether they are not equal.

Explicit Interface Implementations

IDisposable.Dispose() IDisposable.Dispose() IDisposable.Dispose() IDisposable.Dispose()

Applies to