NoMessagePumpSyncContext Class
A SynchronizationContext whose synchronously-blocking Wait method does not allow any re-entrancy via the message pump.
Inheritance Hierarchy
System.Object
System.Threading.SynchronizationContext
Microsoft.VisualStudio.Threading.NoMessagePumpSyncContext
Namespace: Microsoft.VisualStudio.Threading
Assembly: Microsoft.VisualStudio.Threading (in Microsoft.VisualStudio.Threading.dll)
Syntax
'Declaration
Public Class NoMessagePumpSyncContext _
Inherits SynchronizationContext
public class NoMessagePumpSyncContext : SynchronizationContext
public ref class NoMessagePumpSyncContext : public SynchronizationContext
type NoMessagePumpSyncContext =
class
inherit SynchronizationContext
end
public class NoMessagePumpSyncContext extends SynchronizationContext
The NoMessagePumpSyncContext type exposes the following members.
Constructors
Name | Description | |
---|---|---|
NoMessagePumpSyncContext | Initializes a new instance of NoMessagePumpSyncContext. |
Top
Properties
Name | Description | |
---|---|---|
Default | Gets a shared instance of this class. |
Top
Methods
Name | Description | |
---|---|---|
CreateCopy | When overridden in a derived class, creates a copy of the synchronization context. (Inherited from SynchronizationContext.) | |
Equals | Determines whether the specified object is equal to the current object. (Inherited from Object.) | |
Finalize | Allows an object to try to free resources and perform other cleanup operations before it is reclaimed by garbage collection. (Inherited from Object.) | |
GetHashCode | Serves as the default hash function. (Inherited from Object.) | |
GetType | Gets the Type of the current instance. (Inherited from Object.) | |
IsWaitNotificationRequired | Determines if wait notification is required. (Inherited from SynchronizationContext.) | |
MemberwiseClone | Creates a shallow copy of the current Object. (Inherited from Object.) | |
OperationCompleted | When overridden in a derived class, responds to the notification that an operation has completed. (Inherited from SynchronizationContext.) | |
OperationStarted | When overridden in a derived class, responds to the notification that an operation has started. (Inherited from SynchronizationContext.) | |
Post | When overridden in a derived class, dispatches an asynchronous message to a synchronization context. (Inherited from SynchronizationContext.) | |
Send | When overridden in a derived class, dispatches a synchronous message to a synchronization context. (Inherited from SynchronizationContext.) | |
SetWaitNotificationRequired | Sets notification that wait notification is required and prepares the callback method so it can be called more reliably when a wait occurs. (Inherited from SynchronizationContext.) | |
ToString | Returns a string that represents the current object. (Inherited from Object.) | |
Wait | Synchronously blocks without a message pump. (Overrides SynchronizationContext.Wait(array<IntPtr[], Boolean, Int32).) |
Top
Extension Methods
Name | Description | |
---|---|---|
Apply | Applies the specified SynchronizationContext to the caller's context. (Defined by ThreadingTools.) |
Top
Thread Safety
Any public static (Shared in Visual Basic) members of this type are thread safe. Any instance members are not guaranteed to be thread safe.