| 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
)
Protected Overridable Function CreateAsync (
initTypes As IEnumerable(Of Type),
cancellationToken As CancellationToken
) As Task(Of TFrom)
protected:
virtual Task<TFrom>^ CreateAsync(
IEnumerable<Type^>^ initTypes,
CancellationToken cancellationToken
)
abstract CreateAsync :
initTypes : IEnumerable<Type> *
cancellationToken : CancellationToken -> Task<'TFrom>
override CreateAsync :
initTypes : IEnumerable<Type> *
cancellationToken : CancellationToken -> Task<'TFrom>
Parameters
- initTypes
- Type: System.Collections.GenericIEnumerableType
Initialization interface types. - cancellationToken
- Type: System.ThreadingCancellationToken
Cancellation token.
Return Value
Type:
TaskTFromTask capturing the initialization.
See Also