AsyncServiceCreatorWithProgressCallback AsyncServiceCreatorWithProgressCallback AsyncServiceCreatorWithProgressCallback AsyncServiceCreatorWithProgressCallback Delegate

Definition

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

public delegate System::Threading::Tasks::Task<System::Object ^> ^ AsyncServiceCreatorWithProgressCallback(IAsyncServiceContainer ^ container, CancellationToken cancellationToken, Type ^ serviceType, IProgress<ServiceProgressData ^> ^ progress);
public delegate System.Threading.Tasks.Task<object> AsyncServiceCreatorWithProgressCallback(IAsyncServiceContainer container, CancellationToken cancellationToken, Type serviceType, IProgress<ServiceProgressData> progress);
type AsyncServiceCreatorWithProgressCallback = delegate of IAsyncServiceContainer * CancellationToken * Type * IProgress<ServiceProgressData> -> Task<obj>
Public Delegate Function AsyncServiceCreatorWithProgressCallback(container As IAsyncServiceContainer, cancellationToken As CancellationToken, serviceType As Type, progress As IProgress(Of ServiceProgressData)) As Task(Of Object) 
Parameters
container

The service container.

cancellationToken

The cancellation token.

serviceType

The type of the service to get.

progress

The progress marker.

Return Value
System.Threading.Tasks.Task{System.Object}

A task that returns the service.

Inheritance
AsyncServiceCreatorWithProgressCallbackAsyncServiceCreatorWithProgressCallbackAsyncServiceCreatorWithProgressCallbackAsyncServiceCreatorWithProgressCallback

Applies to