| UnityContainerAsyncExtensionsResolveAsyncT Method (IUnityContainer, String, AsyncInitArgs, ResolverOverride) |
Resolves and asynchronously initializes an instance.
Namespace:
Ditto.AsyncInit.Unity
Assembly:
Ditto.AsyncInit.Unity (in Ditto.AsyncInit.Unity.dll) Version: 1.6.0.2641
Syntax public static Task<T> ResolveAsync<T>(
this IUnityContainer container,
string name,
AsyncInitArgs args,
params ResolverOverride[] overrides
)
<ExtensionAttribute>
Public Shared Function ResolveAsync(Of T) (
container As IUnityContainer,
name As String,
args As AsyncInitArgs,
ParamArray overrides As ResolverOverride()
) As Task(Of T)
public:
[ExtensionAttribute]
generic<typename T>
static Task<T>^ ResolveAsync(
IUnityContainer^ container,
String^ name,
AsyncInitArgs^ args,
... array<ResolverOverride^>^ overrides
)
[<ExtensionAttribute>]
static member ResolveAsync :
container : IUnityContainer *
name : string *
args : AsyncInitArgs *
overrides : ResolverOverride[] -> Task<'T>
Parameters
- container
- Type: IUnityContainer
The container. - name
- Type: SystemString
The name used for registration. - args
- Type: AsyncInitArgs
Initialization arguments. - overrides
- Type: ResolverOverride
Resolver overrides.
Type Parameters
- T
- The type of object to resolve.
Return Value
Type:
TaskTTask capturing the initialization.
Usage Note
In Visual Basic and C#, you can call this method as an instance method on any object of type
IUnityContainer. When you use instance method syntax to call this method, omit the first parameter. For more information, see
Extension Methods (Visual Basic) or
Extension Methods (C# Programming Guide).
See Also