Click or drag to resize

AsyncInitializerTFrom, TToCreateAsync Method (IEnumerableType, CancellationToken)

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

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

Parameters

initTypes
Type: System.Collections.GenericIEnumerableType
Initialization interface types.
cancellationToken
Type: System.ThreadingCancellationToken
Cancellation token.

Return Value

Type: TaskTFrom
Task capturing the initialization.
See Also