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
Public method NoMessagePumpSyncContext Initializes a new instance of NoMessagePumpSyncContext.

Top

Properties

  Name Description
Public propertyStatic member Default Gets a shared instance of this class.

Top

Methods

  Name Description
Public method CreateCopy When overridden in a derived class, creates a copy of the synchronization context. (Inherited from SynchronizationContext.)
Public method Equals Determines whether the specified object is equal to the current object. (Inherited from Object.)
Protected method Finalize Allows an object to try to free resources and perform other cleanup operations before it is reclaimed by garbage collection. (Inherited from Object.)
Public method GetHashCode Serves as the default hash function. (Inherited from Object.)
Public method GetType Gets the Type of the current instance. (Inherited from Object.)
Public method IsWaitNotificationRequired Determines if wait notification is required. (Inherited from SynchronizationContext.)
Protected method MemberwiseClone Creates a shallow copy of the current Object. (Inherited from Object.)
Public method OperationCompleted When overridden in a derived class, responds to the notification that an operation has completed. (Inherited from SynchronizationContext.)
Public method OperationStarted When overridden in a derived class, responds to the notification that an operation has started. (Inherited from SynchronizationContext.)
Public method Post When overridden in a derived class, dispatches an asynchronous message to a synchronization context. (Inherited from SynchronizationContext.)
Public method Send When overridden in a derived class, dispatches a synchronous message to a synchronization context. (Inherited from SynchronizationContext.)
Protected method 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.)
Public method ToString Returns a string that represents the current object. (Inherited from Object.)
Public method Wait Synchronously blocks without a message pump. (Overrides SynchronizationContext.Wait(array<IntPtr[], Boolean, Int32).)

Top

Extension Methods

  Name Description
Public Extension Method 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.

See Also

Reference

Microsoft.VisualStudio.Threading Namespace