Click or drag to resize

ResolutionExtensions Class

Adds syntactic convenience methods to the IComponentContext interface.
Inheritance Hierarchy
SystemObject
  AutofacResolutionExtensions

Namespace:  Autofac
Assembly:  Autofac (in Autofac.dll) Version: 6.0.0+39696a967e8826f7f1ebc8c1ff4523c9dd75abe0
Syntax
public static class ResolutionExtensions

The ResolutionExtensions type exposes the following members.

Methods
  NameDescription
Public methodStatic memberInjectPropertiesTService(IComponentContext, TService)
Set any properties on instance that can be resolved in the context.
Public methodStatic memberInjectPropertiesTService(IComponentContext, TService, IPropertySelector)
Set any properties on instance that can be resolved by service and that satisfy the constraints imposed by propertySelector.
Public methodStatic memberInjectPropertiesTService(IComponentContext, TService, Parameter)
Set any properties on instance that can be resolved in the context.
Public methodStatic memberInjectPropertiesTService(IComponentContext, TService, IEnumerableParameter)
Set any properties on instance that can be resolved in the context.
Public methodStatic memberInjectPropertiesTService(IComponentContext, TService, IPropertySelector, Parameter)
Set any properties on instance that can be resolved by service and that satisfy the constraints imposed by propertySelector.
Public methodStatic memberInjectPropertiesTService(IComponentContext, TService, IPropertySelector, IEnumerableParameter)
Set any properties on instance that can be resolved by service and that satisfy the constraints imposed by propertySelector.
Public methodStatic memberInjectUnsetPropertiesTService(IComponentContext, TService)
Set any null-valued properties on instance that can be resolved by the container.
Public methodStatic memberInjectUnsetPropertiesTService(IComponentContext, TService, Parameter)
Set any null-valued properties on instance that can be resolved by the container.
Public methodStatic memberInjectUnsetPropertiesTService(IComponentContext, TService, IEnumerableParameter)
Set any null-valued properties on instance that can be resolved by the container.
Public methodStatic memberIsRegistered(IComponentContext, Type)
Determine whether the specified service is available in the context.
Public methodStatic memberIsRegisteredTService(IComponentContext)
Determine whether the specified service is available in the context.
Public methodStatic memberIsRegisteredService
Determine whether the specified service is available in the context.
Public methodStatic memberIsRegisteredWithKey(IComponentContext, Object, Type)
Determine whether the specified service is available in the context.
Public methodStatic memberIsRegisteredWithKeyTService(IComponentContext, Object)
Determine whether the specified service is available in the context.
Public methodStatic memberIsRegisteredWithName(IComponentContext, String, Type)
Determine whether the specified service is available in the context.
Public methodStatic memberIsRegisteredWithNameTService(IComponentContext, String)
Determine whether the specified service is available in the context.
Public methodStatic memberResolve(IComponentContext, Type)
Retrieve a service from the context.
Public methodStatic memberResolve(IComponentContext, Type, Parameter)
Retrieve a service from the context.
Public methodStatic memberResolve(IComponentContext, Type, IEnumerableParameter)
Retrieve a service from the context.
Public methodStatic memberResolveTService(IComponentContext)
Retrieve a service from the context.
Public methodStatic memberResolveTService(IComponentContext, Parameter)
Retrieve a service from the context.
Public methodStatic memberResolveTService(IComponentContext, IEnumerableParameter)
Retrieve a service from the context.
Public methodStatic memberResolveKeyed(IComponentContext, Object, Type)
Retrieve a service from the context.
Public methodStatic memberResolveKeyed(IComponentContext, Object, Type, Parameter)
Retrieve a service from the context.
Public methodStatic memberResolveKeyed(IComponentContext, Object, Type, IEnumerableParameter)
Retrieve a service from the context.
Public methodStatic memberResolveKeyedTService(IComponentContext, Object)
Retrieve a service from the context.
Public methodStatic memberResolveKeyedTService(IComponentContext, Object, Parameter)
Retrieve a service from the context.
Public methodStatic memberResolveKeyedTService(IComponentContext, Object, IEnumerableParameter)
Retrieve a service from the context.
Public methodStatic memberResolveNamed(IComponentContext, String, Type)
Retrieve a service from the context.
Public methodStatic memberResolveNamed(IComponentContext, String, Type, Parameter)
Retrieve a service from the context.
Public methodStatic memberResolveNamed(IComponentContext, String, Type, IEnumerableParameter)
Retrieve a service from the context.
Public methodStatic memberResolveNamedTService(IComponentContext, String)
Retrieve a service from the context.
Public methodStatic memberResolveNamedTService(IComponentContext, String, Parameter)
Retrieve a service from the context.
Public methodStatic memberResolveNamedTService(IComponentContext, String, IEnumerableParameter)
Retrieve a service from the context.
Public methodStatic memberResolveOptional(IComponentContext, Type)
Retrieve a service from the context, or null if the service is not registered.
Public methodStatic memberResolveOptional(IComponentContext, Type, Parameter)
Retrieve a service from the context, or null if the service is not registered.
Public methodStatic memberResolveOptional(IComponentContext, Type, IEnumerableParameter)
Retrieve a service from the context, or null if the service is not registered.
Public methodStatic memberResolveOptionalTService(IComponentContext)
Retrieve a service from the context, or null if the service is not registered.
Public methodStatic memberResolveOptionalTService(IComponentContext, Parameter)
Retrieve a service from the context, or null if the service is not registered.
Public methodStatic memberResolveOptionalTService(IComponentContext, IEnumerableParameter)
Retrieve a service from the context, or null if the service is not registered.
Public methodStatic memberResolveOptionalKeyedTService(IComponentContext, Object)
Retrieve a service from the context, or null if the service is not registered.
Public methodStatic memberResolveOptionalKeyedTService(IComponentContext, Object, Parameter)
Retrieve a service from the context, or null if the service is not registered.
Public methodStatic memberResolveOptionalKeyedTService(IComponentContext, Object, IEnumerableParameter)
Retrieve a service from the context, or null if the service is not registered.
Public methodStatic memberResolveOptionalNamedTService(IComponentContext, String)
Retrieve a service from the context, or null if the service is not registered.
Public methodStatic memberResolveOptionalNamedTService(IComponentContext, String, Parameter)
Retrieve a service from the context, or null if the service is not registered.
Public methodStatic memberResolveOptionalNamedTService(IComponentContext, String, IEnumerableParameter)
Retrieve a service from the context, or null if the service is not registered.
Public methodStatic memberResolveOptionalService(IComponentContext, Service)
Retrieve a service from the context, or null if the service is not registered.
Public methodStatic memberResolveOptionalService(IComponentContext, Service, Parameter)
Retrieve a service from the context, or null if the service is not registered.
Public methodStatic memberResolveOptionalService(IComponentContext, Service, IEnumerableParameter)
Retrieve a service from the context, or null if the service is not registered.
Public methodStatic memberResolveService(IComponentContext, Service)
Retrieve a service from the context.
Public methodStatic memberResolveService(IComponentContext, Service, Parameter)
Retrieve a service from the context.
Public methodStatic memberResolveService(IComponentContext, Service, IEnumerableParameter)
Retrieve a service from the context.
Public methodStatic memberTryResolve(IComponentContext, Type, Object)
Try to retrieve a service from the context.
Public methodStatic memberTryResolveT(IComponentContext, T)
Try to retrieve a service from the context.
Public methodStatic memberTryResolveKeyed
Try to retrieve a service from the context.
Public methodStatic memberTryResolveNamed
Try to retrieve a service from the context.
Public methodStatic memberTryResolveService(IComponentContext, Service, Object)
Try to retrieve a service from the context.
Public methodStatic memberTryResolveService(IComponentContext, Service, IEnumerableParameter, Object)
Try to retrieve a service from the context.
Top
Fields
  NameDescription
Public fieldStatic memberPropertyInjectedInstanceTypeNamedParameter
The NamedParameter name, provided when properties are injected onto an existing instance.
Top
See Also