Click or drag to resize

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
)

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: TaskT
Task 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