Condividi tramite


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

The service container.

cancellationToken
CancellationToken

The cancellation token.

serviceType
Type

The type of the service.

Return Value

A task that returns the service.

Applies to