An instance of this type can be injected into constructors of decorator classes that are registered
using RegisterDecorator. This type contains
contextual information about the applied decoration and it allows users to examine the given instance
to make runtime decisions.
Inheritance Hierarchy
SimpleInjector.AdvancedApiObject
SimpleInjectorDecoratorContext
Namespace: SimpleInjector
Assembly: SimpleInjector (in SimpleInjector.dll) Version: 5.3.0
Syntax
The DecoratorContext type exposes the following members.
Properties
Name | Description | |
---|---|---|
AppliedDecorators |
Gets the list of the types of decorators that have already been applied to this instance.
| |
Expression |
Gets the current Expression object that describes the intention to create a new
instance with its currently applied decorators.
| |
ImplementationType |
Gets the type of the implementation that is created by the container and for which the decorator
is about to be applied. The original implementation type will be returned, even if other decorators
have already been applied to this type. Please note that the implementation type can not always be
determined. In that case the closed generic service type will be returned.
| |
ServiceType |
Gets the closed generic service type for which the decorator is about to be applied. The original
service type will be returned, even if other decorators have already been applied to this type.
|
Methods
Name | Description | |
---|---|---|
Equals | Determines whether the specified object is equal to the current object. (Inherited from ApiObject.) | |
GetHashCode | Serves as the default hash function. (Inherited from ApiObject.) | |
GetType | Gets the Type of the current instance. (Inherited from ApiObject.) | |
ToString | Returns a string that represents the current object. (Inherited from ApiObject.) |
See Also