| AsyncActivatorCreateAsyncT, TArg1, TArg2, TArg3, TArg4, TArg5, TArg6 Method (TArg1, TArg2, TArg3, TArg4, TArg5, TArg6, CancellationToken) |
Asynchronously creates and initializes an instance of the specified type.
Namespace:
Ditto.AsyncInit
Assembly:
Ditto.AsyncInit (in Ditto.AsyncInit.dll) Version: 1.5.0.2281
Syntax public static Task<T> CreateAsync<T, TArg1, TArg2, TArg3, TArg4, TArg5, TArg6>(
TArg1 arg1,
TArg2 arg2,
TArg3 arg3,
TArg4 arg4,
TArg5 arg5,
TArg6 arg6,
CancellationToken cancellationToken
)
where T : Object, ICancelableAsyncInit<TArg1, TArg2, TArg3, TArg4, TArg5, TArg6>
Public Shared Function CreateAsync(Of T As {Object, ICancelableAsyncInit(Of TArg1, TArg2, TArg3, TArg4, TArg5, TArg6)}, TArg1, TArg2, TArg3, TArg4, TArg5, TArg6) (
arg1 As TArg1,
arg2 As TArg2,
arg3 As TArg3,
arg4 As TArg4,
arg5 As TArg5,
arg6 As TArg6,
cancellationToken As CancellationToken
) As Task(Of T)
public:
generic<typename T, typename TArg1, typename TArg2, typename TArg3, typename TArg4, typename TArg5, typename TArg6>
where T : Object, ICancelableAsyncInit<TArg1, TArg2, TArg3, TArg4, TArg5, TArg6>
static Task<T>^ CreateAsync(
TArg1 arg1,
TArg2 arg2,
TArg3 arg3,
TArg4 arg4,
TArg5 arg5,
TArg6 arg6,
CancellationToken cancellationToken
)
static member CreateAsync :
arg1 : 'TArg1 *
arg2 : 'TArg2 *
arg3 : 'TArg3 *
arg4 : 'TArg4 *
arg5 : 'TArg5 *
arg6 : 'TArg6 *
cancellationToken : CancellationToken -> Task<'T> when 'T : Object and ICancelableAsyncInit<'TArg1, 'TArg2, 'TArg3, 'TArg4, 'TArg5, 'TArg6>
Parameters
- arg1
- Type: TArg1
The first initialization argument. - arg2
- Type: TArg2
The second initialization argument. - arg3
- Type: TArg3
The third initialization argument. - arg4
- Type: TArg4
The fourth initialization argument. - arg5
- Type: TArg5
The fifth initialization argument. - arg6
- Type: TArg6
The sixth initialization argument. - cancellationToken
- Type: System.ThreadingCancellationToken
Cancellation token.
Type Parameters
- T
- The type of object to create (must implement ICancelableAsyncInitTArg1, TArg2, TArg3, TArg4, TArg5, TArg6).
- TArg1
- The type of the first initialization argument.
- TArg2
- The type of the second initialization argument.
- TArg3
- The type of the third initialization argument.
- TArg4
- The type of the fourth initialization argument.
- TArg5
- The type of the fifth initialization argument.
- TArg6
- The type of the sixth initialization argument.
Return Value
Type:
TaskTA
Task capturing the initialization.
See Also