| ContainerAsyncInitializerBaseTFrom, TTo, TContainerAsTask Method (CancellationToken) |
Gets a cancelable task capturing the initialization.
Namespace:
Ditto.AsyncInit.Services
Assembly:
Ditto.AsyncInit.Services (in Ditto.AsyncInit.Services.dll) Version: 1.5.0.2468
Syntax public override Task<TFrom> AsTask(
CancellationToken cancellationToken
)
Public Overrides Function AsTask (
cancellationToken As CancellationToken
) As Task(Of TFrom)
public:
virtual Task<TFrom>^ AsTask(
CancellationToken cancellationToken
) override
abstract AsTask :
cancellationToken : CancellationToken -> Task<'TFrom>
override AsTask :
cancellationToken : CancellationToken -> Task<'TFrom>
Parameters
- cancellationToken
- Type: System.ThreadingCancellationToken
Cancellation token.
Return Value
Type:
TaskTFromCancelable task capturing the initialization.
Implements
IAsyncInitializerTAsTask(CancellationToken)See Also