Autofac .NET Inversion of Control Container
ResolutionExtensions Class
NamespacesAutofacResolutionExtensions
Adds syntactic convenience methods to the IComponentContext interface.
Declaration Syntax
C#Visual BasicVisual C++
public static class ResolutionExtensions
Public NotInheritable Class ResolutionExtensions
public ref class ResolutionExtensions abstract sealed
Members
All MembersMethods



IconMemberDescription
InjectProperties<(Of <(TService>)>)(IComponentContext, TService)
Set any properties on instance that can be resolved in the context.

InjectUnsetProperties<(Of <(TService>)>)(IComponentContext, TService)
Set any null-valued properties on instance that can be resolved by the container.

IsRegistered<(Of <(TService>)>)(IComponentContext)
Determine whether the specified service is available in the context.

IsRegistered(IComponentContext, Type)
Determine whether the specified service is available in the context.

IsRegistered(IComponentContext, String, Type)
Determine whether the specified service is available in the context.

IsRegistered<(Of <(TService>)>)(IComponentContext, String)
Determine whether the specified service is available in the context.

IsRegistered(IComponentContext, Service)
Determine whether the specified service is available in the context.

Resolve<(Of <(TService>)>)(IComponentContext, Guid)
Retrieve a service from the context.

Resolve<(Of <(TService>)>)(IComponentContext, Guid, IEnumerable<(Of <(Parameter>)>))
Retrieve a service from the context.

Resolve<(Of <(TService>)>)(IComponentContext, Guid, array<Parameter>[]()[])
Retrieve a service from the context.

Resolve<(Of <(TService>)>)(IComponentContext, String)
Retrieve a service from the context.

Resolve<(Of <(TService>)>)(IComponentContext, String, IEnumerable<(Of <(Parameter>)>))
Retrieve a service from the context.

Resolve<(Of <(TService>)>)(IComponentContext, String, array<Parameter>[]()[])
Retrieve a service from the context.

Resolve<(Of <(TService>)>)(IComponentContext)
Retrieve a service from the context.

Resolve<(Of <(TService>)>)(IComponentContext, IEnumerable<(Of <(Parameter>)>))
Retrieve a service from the context.

Resolve<(Of <(TService>)>)(IComponentContext, array<Parameter>[]()[])
Retrieve a service from the context.

Resolve(IComponentContext, Type)
Retrieve a service from the context.

Resolve(IComponentContext, Type, IEnumerable<(Of <(Parameter>)>))
Retrieve a service from the context.

Resolve(IComponentContext, Type, array<Parameter>[]()[])
Retrieve a service from the context.

Resolve(IComponentContext, String, Type)
Retrieve a service from the context.

Resolve(IComponentContext, String, Type, IEnumerable<(Of <(Parameter>)>))
Retrieve a service from the context.

Resolve(IComponentContext, String, Type, array<Parameter>[]()[])
Retrieve a service from the context.

Resolve(IComponentContext, Service)
Retrieve a service from the context.

Resolve(IComponentContext, Service, IEnumerable<(Of <(Parameter>)>))
Retrieve a service from the context.

Resolve(IComponentContext, Service, array<Parameter>[]()[])
Retrieve a service from the context.

ResolveOptional<(Of <(TService>)>)(IComponentContext)
Retrieve a service from the context, or null if the service is not registered.

ResolveOptional<(Of <(TService>)>)(IComponentContext, IEnumerable<(Of <(Parameter>)>))
Retrieve a service from the context, or null if the service is not registered.

ResolveOptional<(Of <(TService>)>)(IComponentContext, array<Parameter>[]()[])
Retrieve a service from the context, or null if the service is not registered.

ResolveOptional<(Of <(TService>)>)(IComponentContext, String)
Retrieve a service from the context, or null if the service is not registered.

ResolveOptional<(Of <(TService>)>)(IComponentContext, String, IEnumerable<(Of <(Parameter>)>))
Retrieve a service from the context, or null if the service is not registered.

ResolveOptional<(Of <(TService>)>)(IComponentContext, String, array<Parameter>[]()[])
Retrieve a service from the context, or null if the service is not registered.

ResolveOptional(IComponentContext, Type)
Retrieve a service from the context, or null if the service is not registered.

ResolveOptional(IComponentContext, Type, IEnumerable<(Of <(Parameter>)>))
Retrieve a service from the context, or null if the service is not registered.

ResolveOptional(IComponentContext, Type, array<Parameter>[]()[])
Retrieve a service from the context, or null if the service is not registered.

ResolveOptional(IComponentContext, Service)
Retrieve a service from the context, or null if the service is not registered.

ResolveOptional(IComponentContext, Service, IEnumerable<(Of <(Parameter>)>))
Retrieve a service from the context, or null if the service is not registered.

ResolveOptional(IComponentContext, Service, array<Parameter>[]()[])
Retrieve a service from the context, or null if the service is not registered.

TryResolve(IComponentContext, Service, IEnumerable<(Of <(Parameter>)>), Object%)
Try to retrieve a service from the context.

TryResolve(IComponentContext, Service, Object%)
Try to retrieve a service from the context.

TryResolve(IComponentContext, Type, Object%)
Try to retrieve a service from the context.

TryResolve(IComponentContext, String, Type, Object%)
Try to retrieve a service from the context.

Inheritance Hierarchy
Object
ResolutionExtensions

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