17 internal void Setup(SecurityContextDisableFlow flags)
21 _sc = currentThread.GetMutableExecutionContext().SecurityContext;
22 _sc._disableFlow = flags;
23 _thread = currentThread;
31 _ec = currentThread.GetMutableExecutionContext();
32 _ec.isFlowSuppressed =
true;
33 _thread = currentThread;
45 [SecuritySafeCritical]
83 return ToString().GetHashCode();
90 public override bool Equals(
object obj)
105 if (obj.useEC == useEC && obj._ec == _ec && obj._sc == _sc)
107 return obj._thread == _thread;
void Undo()
Restores the flow of the execution context between threads.
static Thread CurrentThread
Gets the currently running thread.
static void RestoreFlow()
Restores the flow of the security context across asynchronous threads.
void Dispose()
Releases all resources used by the current instance of the T:System.Threading.AsyncFlowControl class.
Provides a mechanism for releasing unmanaged resources.To browse the .NET Framework source code for t...
Encapsulates and propagates all security-related data for execution contexts transferred across threa...
override int GetHashCode()
Gets a hash code for the current T:System.Threading.AsyncFlowControl structure.
Provides the functionality to restore the migration, or flow, of the execution context between thread...
override bool Equals(object obj)
Determines whether the specified object is equal to the current T:System.Threading....
override int GetHashCode()
Returns a hash code for the current thread.
Provides information about, and means to manipulate, the current environment and platform....
Manages the execution context for the current thread. This class cannot be inherited.
bool Equals(AsyncFlowControl obj)
Determines whether the specified T:System.Threading.AsyncFlowControl structure is equal to the curren...
static void RestoreFlow()
Restores the flow of the execution context across asynchronous threads.
static bool operator !=(AsyncFlowControl a, AsyncFlowControl b)
Compares two T:System.Threading.AsyncFlowControl structures to determine whether they are not equal.
The exception that is thrown when a method call is invalid for the object's current state.
static bool operator==(AsyncFlowControl a, AsyncFlowControl b)
Compares two T:System.Threading.AsyncFlowControl structures to determine whether they are equal.
Creates and controls a thread, sets its priority, and gets its status.