Contextual information the a dependency and its direct consumer for which the dependency is injected
into. The consumer's type is given by the ImplementationType property, where the
Target property gives access to the consumer's target element (property or constructor
argument) in which the dependency will be injected, and the dependency's type information.
Inheritance Hierarchy
SimpleInjector.AdvancedApiObject
SimpleInjectorInjectionConsumerInfo
Namespace: SimpleInjector
Assembly: SimpleInjector (in SimpleInjector.dll) Version: 5.3.0
Syntax
The InjectionConsumerInfo type exposes the following members.
Constructors
Name | Description | |
---|---|---|
InjectionConsumerInfo(ParameterInfo) | Initializes a new instance of the InjectionConsumerInfo class. | |
InjectionConsumerInfo(Type, PropertyInfo) | Initializes a new instance of the InjectionConsumerInfo class. |
Properties
Name | Description | |
---|---|---|
ImplementationType | Gets the implementation type of the consumer of the component that should be created. | |
Target |
Gets the information about the consumer's target in which the dependency is injected. The target
can be either a property or a constructor parameter.
|
Methods
Name | Description | |
---|---|---|
Equals(Object) | Determines whether the specified object is equal to the current object. (Overrides ApiObjectEquals(Object).) | |
Equals(InjectionConsumerInfo) | Indicates whether the current object is equal to another object of the same type. | |
GetHashCode | Serves as the default hash function. (Overrides ApiObjectGetHashCode.) | |
GetType | Gets the Type of the current instance. (Inherited from ApiObject.) | |
ToString | Returns a string that represents the current object. (Overrides ApiObjectToString.) |
See Also