AsyncServiceProvider Class

Visual Studio 2015
 

An asynchronous service provider.

Namespace:   Microsoft.VisualStudio.Shell
Assembly:  Microsoft.VisualStudio.Shell.14.0 (in Microsoft.VisualStudio.Shell.14.0.dll)

System.Object
  Microsoft.VisualStudio.Shell.AsyncServiceProvider

[ComVisibleAttribute(true)]
public sealed class AsyncServiceProvider : IAsyncServiceProvider, 
	IDisposable, IObjectWithSite

NameDescription
System_CAPS_pubmethodAsyncServiceProvider(IAsyncServiceProvider)

Creates a new AsyncServiceProvider with the specified service provider.

System_CAPS_pubmethodAsyncServiceProvider(IAsyncServiceProvider, Boolean)

Creates a new AsyncServiceProvider object and uses the given interface to resolve services. If defaultServices is true (the default used by the ctor that doesn't take a 'defaultServices' parameter) this service provider will respond to IObjectWithSite as a service. A query for IObjectWithSite will return this object. If false is passed in for defaultServices, this service will not be provided and the service provider will be "transparent".

NameDescription
System_CAPS_pubpropertySystem_CAPS_staticGlobalProvider

Gets the global provider.

NameDescription
System_CAPS_pubmethodSystem_CAPS_staticCreateFromSetSite(IAsyncServiceProvider)

Create a new AsyncServiceProvider for the given site. Should be called from an object that implements SetSite (IObjectWithSite or IVsPackage). Automatically sets the global async service provider if it hasn't already been set. This method is typically called from the SetSite method of a Visual Studio package.

Note: By calling this method, the caller declares that it knows the global async service provider and that the AsyncServiceProvider instance returned may be used by other, unrelated components, accessed via the AsyncServiceProvider.GlobalProvider static property.

System_CAPS_pubmethodDispose()

Disposes the object.

System_CAPS_pubmethodEquals(Object)

(Inherited from Object.)

System_CAPS_pubmethodGetHashCode()

(Inherited from Object.)

System_CAPS_pubmethodGetServiceAsync(Type)

System_CAPS_pubmethodGetType()

(Inherited from Object.)

System_CAPS_pubmethodQueryServiceAsync(Guid)

System_CAPS_pubmethodQueryServiceAsync(Type)

System_CAPS_pubmethodToString()

(Inherited from Object.)

Any public static (Shared in Visual Basic) members of this type are thread safe. Any instance members are not guaranteed to be thread safe.

Return to top
Show: