Click or drag to resize

CancelableAsyncInitBaseT, TArgInitAsync Method (TArg, CancellationToken)

Asynchronously initializes an instance. Overridden by the deriving type.

Namespace:  Ditto.AsyncInit
Assembly:  Ditto.AsyncInit (in Ditto.AsyncInit.dll) Version: 1.5.0.2281
Syntax
protected abstract Task InitAsync(
	TArg arg,
	CancellationToken cancellationToken
)

Parameters

arg
Type: TArg
The initialization argument.
cancellationToken
Type: System.ThreadingCancellationToken
Cancellation token.

Return Value

Type: Task
A Task capturing the initialization.
See Also