AsyncServiceCreatorCallback AsyncServiceCreatorCallback AsyncServiceCreatorCallback AsyncServiceCreatorCallback Delegate

Definition

The callback for the async service creator.

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

The service container.

cancellationToken

The cancellation token.

serviceType

The type of the service.

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

A task that returns the service.

Inheritance
AsyncServiceCreatorCallbackAsyncServiceCreatorCallbackAsyncServiceCreatorCallbackAsyncServiceCreatorCallback

Applies to