ResolveRequestContext Class |
Namespace: Autofac.Core.Resolving.Pipeline
The ResolveRequestContext type exposes the following members.
Name | Description | |
---|---|---|
ResolveRequestContext | Initializes a new instance of the ResolveRequestContext class |
Name | Description | |
---|---|---|
ActivationScope |
Gets or sets the lifetime scope that will be used for the activation of any components later in the pipeline.
Avoid resolving instances directly from this scope; they will not be traced as part of the same operation.
| |
ComponentRegistry |
Gets the associated services with the components that provide them.
| |
DecoratorContext |
Gets or sets the active decorator context for the request.
| |
DecoratorTarget |
Gets the target registration for decorator requests.
| |
DiagnosticSource |
Gets the DiagnosticListener to which trace events should be written.
| |
Instance |
Gets or sets the instance that will be returned as the result of the resolve request.
On the way back up the pipeline, after calling next(ctxt), this value will be populated
with the resolved instance. Check the NewInstanceActivated property to determine
whether the object here was a newly activated instance, or a shared instance previously activated.
| |
NewInstanceActivated |
Gets a value indicating whether the resolved Instance is a new instance of a component has been activated during this request,
or an existing shared instance that has been retrieved.
| |
Operation |
Gets a reference to the owning resolve operation (which might emcompass multiple nested requests).
| |
Parameters |
Gets or sets the current resolve parameters. These can be changed using the ChangeParameters(IEnumerableParameter) method.
| |
PhaseReached |
Gets or sets the phase of the pipeline reached by this request.
| |
Registration |
Gets the component registration that is being resolved in the current request.
| |
Service |
Gets the service that is being resolved in the current request.
|
Name | Description | |
---|---|---|
ChangeParameters |
Change the set of parameters being used in the processing of this request.
| |
ChangeScope |
Use this method to change the ISharingLifetimeScope that is used in this request. Changing this scope will
also change the IComponentRegistry available in this context.
| |
Equals | Determines whether the specified object is equal to the current object. (Inherited from Object.) | |
Finalize | Allows an object to try to free resources and perform other cleanup operations before it is reclaimed by garbage collection. (Inherited from Object.) | |
GetHashCode | Serves as the default hash function. (Inherited from Object.) | |
GetType | Gets the Type of the current instance. (Inherited from Object.) | |
MemberwiseClone | Creates a shallow copy of the current Object. (Inherited from Object.) | |
ResolveComponent |
Resolve an instance of the provided registration within the context.
| |
ToString | Returns a string that represents the current object. (Inherited from Object.) |
Name | Description | |
---|---|---|
RequestCompleting |
Provides an event that will fire when the current request completes.
Requests will only be considered 'complete' when the overall IResolveOperation is completing.
|
Name | Description | |
---|---|---|
InjectPropertiesTService(TService) | Overloaded.
Set any properties on instance that can be
resolved in the context.
(Defined by ResolutionExtensions.) | |
InjectPropertiesTService(TService, IEnumerableParameter) | Overloaded.
Set any properties on instance that can be
resolved in the context.
(Defined by ResolutionExtensions.) | |
InjectPropertiesTService(TService, Parameter) | Overloaded.
Set any properties on instance that can be
resolved in the context.
(Defined by ResolutionExtensions.) | |
InjectPropertiesTService(TService, IPropertySelector) | Overloaded.
Set any properties on instance that can be resolved by service and that satisfy the
constraints imposed by propertySelector.
(Defined by ResolutionExtensions.) | |
InjectPropertiesTService(TService, IPropertySelector, IEnumerableParameter) | Overloaded.
Set any properties on instance that can be resolved by service and that satisfy the
constraints imposed by propertySelector.
(Defined by ResolutionExtensions.) | |
InjectPropertiesTService(TService, IPropertySelector, Parameter) | Overloaded.
Set any properties on instance that can be resolved by service and that satisfy the
constraints imposed by propertySelector.
(Defined by ResolutionExtensions.) | |
InjectUnsetPropertiesTService(TService) | Overloaded.
Set any null-valued properties on instance that can be
resolved by the container.
(Defined by ResolutionExtensions.) | |
InjectUnsetPropertiesTService(TService, IEnumerableParameter) | Overloaded.
Set any null-valued properties on instance that can be
resolved by the container.
(Defined by ResolutionExtensions.) | |
InjectUnsetPropertiesTService(TService, Parameter) | Overloaded.
Set any null-valued properties on instance that can be
resolved by the container.
(Defined by ResolutionExtensions.) | |
IsRegistered(Type) | Overloaded.
Determine whether the specified service is available in the context.
(Defined by ResolutionExtensions.) | |
IsRegisteredTService | Overloaded.
Determine whether the specified service is available in the context.
(Defined by ResolutionExtensions.) | |
IsRegisteredService |
Determine whether the specified service is available in the context.
(Defined by ResolutionExtensions.) | |
IsRegisteredWithKey(Object, Type) | Overloaded.
Determine whether the specified service is available in the context.
(Defined by ResolutionExtensions.) | |
IsRegisteredWithKeyTService(Object) | Overloaded.
Determine whether the specified service is available in the context.
(Defined by ResolutionExtensions.) | |
IsRegisteredWithName(String, Type) | Overloaded.
Determine whether the specified service is available in the context.
(Defined by ResolutionExtensions.) | |
IsRegisteredWithNameTService(String) | Overloaded.
Determine whether the specified service is available in the context.
(Defined by ResolutionExtensions.) | |
Resolve(Type) | Overloaded.
Retrieve a service from the context.
(Defined by ResolutionExtensions.) | |
Resolve(Type, IEnumerableParameter) | Overloaded.
Retrieve a service from the context.
(Defined by ResolutionExtensions.) | |
Resolve(Type, Parameter) | Overloaded.
Retrieve a service from the context.
(Defined by ResolutionExtensions.) | |
ResolveTService | Overloaded.
Retrieve a service from the context.
(Defined by ResolutionExtensions.) | |
ResolveTService(IEnumerableParameter) | Overloaded.
Retrieve a service from the context.
(Defined by ResolutionExtensions.) | |
ResolveTService(Parameter) | Overloaded.
Retrieve a service from the context.
(Defined by ResolutionExtensions.) | |
ResolveExportsT | Overloaded.
Locate all of the MEF exports registered as supplying contract type T.
(Defined by RegistrationExtensions.) | |
ResolveExportsT(String) | Overloaded.
Locate all of the MEF exports registered as supplying contract type T.
(Defined by RegistrationExtensions.) | |
ResolveKeyed(Object, Type) | Overloaded.
Retrieve a service from the context.
(Defined by ResolutionExtensions.) | |
ResolveKeyed(Object, Type, IEnumerableParameter) | Overloaded.
Retrieve a service from the context.
(Defined by ResolutionExtensions.) | |
ResolveKeyed(Object, Type, Parameter) | Overloaded.
Retrieve a service from the context.
(Defined by ResolutionExtensions.) | |
ResolveKeyedTService(Object) | Overloaded.
Retrieve a service from the context.
(Defined by ResolutionExtensions.) | |
ResolveKeyedTService(Object, IEnumerableParameter) | Overloaded.
Retrieve a service from the context.
(Defined by ResolutionExtensions.) | |
ResolveKeyedTService(Object, Parameter) | Overloaded.
Retrieve a service from the context.
(Defined by ResolutionExtensions.) | |
ResolveNamed(String, Type) | Overloaded.
Retrieve a service from the context.
(Defined by ResolutionExtensions.) | |
ResolveNamed(String, Type, IEnumerableParameter) | Overloaded.
Retrieve a service from the context.
(Defined by ResolutionExtensions.) | |
ResolveNamed(String, Type, Parameter) | Overloaded.
Retrieve a service from the context.
(Defined by ResolutionExtensions.) | |
ResolveNamedTService(String) | Overloaded.
Retrieve a service from the context.
(Defined by ResolutionExtensions.) | |
ResolveNamedTService(String, IEnumerableParameter) | Overloaded.
Retrieve a service from the context.
(Defined by ResolutionExtensions.) | |
ResolveNamedTService(String, Parameter) | Overloaded.
Retrieve a service from the context.
(Defined by ResolutionExtensions.) | |
ResolveOptional(Type) | Overloaded.
Retrieve a service from the context, or null if the service is not
registered.
(Defined by ResolutionExtensions.) | |
ResolveOptional(Type, IEnumerableParameter) | Overloaded.
Retrieve a service from the context, or null if the service is not
registered.
(Defined by ResolutionExtensions.) | |
ResolveOptional(Type, Parameter) | Overloaded.
Retrieve a service from the context, or null if the service is not
registered.
(Defined by ResolutionExtensions.) | |
ResolveOptionalTService | Overloaded.
Retrieve a service from the context, or null if the service is not
registered.
(Defined by ResolutionExtensions.) | |
ResolveOptionalTService | Overloaded.
Retrieve a service from the context, or null if the service is not
registered.
(Defined by ResolutionValueExtensions.) | |
ResolveOptionalTService(IEnumerableParameter) | Overloaded.
Retrieve a service from the context, or null if the service is not
registered.
(Defined by ResolutionExtensions.) | |
ResolveOptionalTService(Parameter) | Overloaded.
Retrieve a service from the context, or null if the service is not
registered.
(Defined by ResolutionExtensions.) | |
ResolveOptionalTService(IEnumerableParameter) | Overloaded.
Retrieve a service from the context, or null if the service is not
registered.
(Defined by ResolutionValueExtensions.) | |
ResolveOptionalTService(Parameter) | Overloaded.
Retrieve a service from the context, or null if the service is not
registered.
(Defined by ResolutionValueExtensions.) | |
ResolveOptionalKeyedTService(Object) | Overloaded.
Retrieve a service from the context, or null if the service is not
registered.
(Defined by ResolutionExtensions.) | |
ResolveOptionalKeyedTService(Object) | Overloaded.
Retrieve a service from the context, or null if the service is not
registered.
(Defined by ResolutionValueExtensions.) | |
ResolveOptionalKeyedTService(Object, IEnumerableParameter) | Overloaded.
Retrieve a service from the context, or null if the service is not
registered.
(Defined by ResolutionExtensions.) | |
ResolveOptionalKeyedTService(Object, Parameter) | Overloaded.
Retrieve a service from the context, or null if the service is not
registered.
(Defined by ResolutionExtensions.) | |
ResolveOptionalKeyedTService(Object, IEnumerableParameter) | Overloaded.
Retrieve a service from the context, or null if the service is not
registered.
(Defined by ResolutionValueExtensions.) | |
ResolveOptionalKeyedTService(Object, Parameter) | Overloaded.
Retrieve a service from the context, or null if the service is not
registered.
(Defined by ResolutionValueExtensions.) | |
ResolveOptionalNamedTService(String) | Overloaded.
Retrieve a service from the context, or null if the service is not
registered.
(Defined by ResolutionExtensions.) | |
ResolveOptionalNamedTService(String) | Overloaded.
Retrieve a service from the context, or null if the service is not
registered.
(Defined by ResolutionValueExtensions.) | |
ResolveOptionalNamedTService(String, IEnumerableParameter) | Overloaded.
Retrieve a service from the context, or null if the service is not
registered.
(Defined by ResolutionExtensions.) | |
ResolveOptionalNamedTService(String, Parameter) | Overloaded.
Retrieve a service from the context, or null if the service is not
registered.
(Defined by ResolutionExtensions.) | |
ResolveOptionalNamedTService(String, IEnumerableParameter) | Overloaded.
Retrieve a service from the context, or null if the service is not
registered.
(Defined by ResolutionValueExtensions.) | |
ResolveOptionalNamedTService(String, Parameter) | Overloaded.
Retrieve a service from the context, or null if the service is not
registered.
(Defined by ResolutionValueExtensions.) | |
ResolveOptionalService(Service) | Overloaded.
Retrieve a service from the context, or null if the service is not
registered.
(Defined by ResolutionExtensions.) | |
ResolveOptionalService(Service, IEnumerableParameter) | Overloaded.
Retrieve a service from the context, or null if the service is not
registered.
(Defined by ResolutionExtensions.) | |
ResolveOptionalService(Service, Parameter) | Overloaded.
Retrieve a service from the context, or null if the service is not
registered.
(Defined by ResolutionExtensions.) | |
ResolveService(Service) | Overloaded.
Retrieve a service from the context.
(Defined by ResolutionExtensions.) | |
ResolveService(Service, IEnumerableParameter) | Overloaded.
Retrieve a service from the context.
(Defined by ResolutionExtensions.) | |
ResolveService(Service, Parameter) | Overloaded.
Retrieve a service from the context.
(Defined by ResolutionExtensions.) | |
TryResolve(Type, Object) | Overloaded.
Try to retrieve a service from the context.
(Defined by ResolutionExtensions.) | |
TryResolveT(T) | Overloaded.
Try to retrieve a service from the context.
(Defined by ResolutionExtensions.) | |
TryResolveT(NullableT) | Overloaded.
Try to retrieve a service from the context.
(Defined by ResolutionValueExtensions.) | |
TryResolveKeyed |
Try to retrieve a service from the context.
(Defined by ResolutionExtensions.) | |
TryResolveNamed |
Try to retrieve a service from the context.
(Defined by ResolutionExtensions.) | |
TryResolveService(Service, Object) | Overloaded.
Try to retrieve a service from the context.
(Defined by ResolutionExtensions.) | |
TryResolveService(Service, IEnumerableParameter, Object) | Overloaded.
Try to retrieve a service from the context.
(Defined by ResolutionExtensions.) |