Partager via


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);
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
IAsyncServiceContainer

The service container.

cancellationToken
CancellationToken

The cancellation token.

serviceType
Type

The type of the service to get.

progress
IProgress<ServiceProgressData>

The progress marker.

Return Value

A task that returns the service.

Applies to