AsyncServiceCreatorWithProgressCallback Delegate

Visual Studio 2015
 

The callback that is invoked when an instance of the service is needed. This is called only one time, and the result is cached.

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

public delegate Task<object> AsyncServiceCreatorWithProgressCallback(
	IAsyncServiceContainer container,
	CancellationToken cancellationToken,
	Type serviceType,
	IProgress<ServiceProgressData> progress
)

Parameters

container
Type: Microsoft.VisualStudio.Shell.IAsyncServiceContainer

The service container.

cancellationToken
Type: System.Threading.CancellationToken

The cancellation token.

serviceType
Type: System.Type

The type of the service to get.

progress
Type: System.IProgress<ServiceProgressData>

The progress marker.

Return Value

Type: System.Threading.Tasks.Task<Object>

A task that returns the service.

Return to top
Show: