AsyncServiceCreatorCallback Delegate
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
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.