| AsyncActivatorCreateAsyncT, TArg1, TArg2 Method (TArg1, TArg2) |
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>(
TArg1 arg1,
TArg2 arg2
)
where T : Object, IAsyncInit<TArg1, TArg2>
Public Shared Function CreateAsync(Of T As {Object, IAsyncInit(Of TArg1, TArg2)}, TArg1, TArg2) (
arg1 As TArg1,
arg2 As TArg2
) As Task(Of T)
public:
generic<typename T, typename TArg1, typename TArg2>
where T : Object, IAsyncInit<TArg1, TArg2>
static Task<T>^ CreateAsync(
TArg1 arg1,
TArg2 arg2
)
static member CreateAsync :
arg1 : 'TArg1 *
arg2 : 'TArg2 -> Task<'T> when 'T : Object and IAsyncInit<'TArg1, 'TArg2>
Parameters
- arg1
- Type: TArg1
The first initialization argument. - arg2
- Type: TArg2
The second initialization argument.
Type Parameters
- T
- The type of object to create (must implement IAsyncInitTArg1, TArg2).
- TArg1
- The type of the first initialization argument.
- TArg2
- The type of the second initialization argument.
Return Value
Type:
TaskTA
Task capturing the initialization.
See Also