| 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
)
Protected Function CreateAsync (
initType As Type,
cancellationToken As CancellationToken
) As Task(Of TFrom)
protected:
Task<TFrom>^ CreateAsync(
Type^ initType,
CancellationToken cancellationToken
)
member CreateAsync :
initType : Type *
cancellationToken : CancellationToken -> Task<'TFrom>
Parameters
- initType
- Type: SystemType
Initialization interface type. - cancellationToken
- Type: System.ThreadingCancellationToken
Cancellation token.
Return Value
Type:
TaskTFromTask capturing the initialization.
See Also