Autofac .NET Inversion of Control Container
Resolve<(Of <(TService>)>) Method (context)
NamespacesAutofacResolutionExtensionsResolve<(Of <(TService>)>)(IComponentContext)
Retrieve a service from the context.
Declaration Syntax
C#Visual BasicVisual C++
public static TService Resolve<TService>(
	IComponentContext context
)
Public Shared Function Resolve(Of TService) ( _
	context As IComponentContext _
) As TService
public:
generic<typename TService>
static TService Resolve(
	IComponentContext^ context
)
Generic Template Parameters
TService
The service to retrieve.
Parameters
context (IComponentContext)
The context from which to resolve the service.
Return Value
The component instance that provides the service.
Exceptions

Assembly: Autofac (Module: Autofac) Version: 2.1.13.813 (2.1.13.813)