AsyncServiceCreatorCallback Delegate

Definition

The callback for the async service creator.

C++
public delegate System::Threading::Tasks::Task<System::Object ^> ^ AsyncServiceCreatorCallback(IAsyncServiceContainer ^ container, CancellationToken cancellationToken, Type ^ serviceType);

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

Produit Versions
Visual Studio SDK 2015, 2017, 2019, 2022