| ContainerAsyncInitializerBaseTFrom, TTo, TContainerCreateAsync Method (IEnumerableType, CancellationToken) |
Asynchronously creates, initializes and builds up an instance of TTo.
using one of the specified initialization interface types.
Namespace:
Ditto.AsyncInit.Services
Assembly:
Ditto.AsyncInit.Services (in Ditto.AsyncInit.Services.dll) Version: 1.5.0.2468
Syntax protected override Task<TFrom> CreateAsync(
IEnumerable<Type> initTypes,
CancellationToken cancellationToken
)
Protected Overrides Function CreateAsync (
initTypes As IEnumerable(Of Type),
cancellationToken As CancellationToken
) As Task(Of TFrom)
protected:
virtual Task<TFrom>^ CreateAsync(
IEnumerable<Type^>^ initTypes,
CancellationToken cancellationToken
) override
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 types. - cancellationToken
- Type: System.ThreadingCancellationToken
Cancellation token.
Return Value
Type:
TaskTFromTask capturing the initialization.
See Also