Click or drag to resize

AsyncInitializerTFrom, TToCreateAsync Method (Type, CancellationToken)

Asynchronously creates and initializes an instance of TTo using the specified initialization interface type.

Namespace:  Ditto.AsyncInit.Services
Assembly:  Ditto.AsyncInit.Services (in Ditto.AsyncInit.Services.dll) Version: 1.5.0.2468
Syntax
protected Task<TFrom> CreateAsync(
	Type initType,
	CancellationToken cancellationToken
)

Parameters

initType
Type: SystemType
Initialization interface type.
cancellationToken
Type: System.ThreadingCancellationToken
Cancellation token.

Return Value

Type: TaskTFrom
Task capturing the initialization.
See Also