Provides access to an injected dependency and its metadata.
Inheritance Hierarchy
SimpleInjector.AdvancedApiObject
SimpleInjectorDependencyMetadataTService
Namespace: SimpleInjector
Assembly: SimpleInjector (in SimpleInjector.dll) Version: 5.3.0
Syntax
public sealed class DependencyMetadata<TService> : ApiObject, IEquatable<DependencyMetadata<TService>> where TService : class
Type Parameters
- TService
- The dependency type.
The DependencyMetadataTService type exposes the following members.
Properties
Name | Description | |
---|---|---|
Dependency | Gets the type that the parent depends on (it is injected into the parent). | |
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.
|
Methods
Name | Description | |
---|---|---|
Equals(Object) | Determines whether the specified object is equal to the current object. (Overrides ApiObjectEquals(Object).) | |
Equals(DependencyMetadataTService) | Indicates whether the current object is equal to another object of the same type. | |
GetHashCode | Serves as the default hash function. (Overrides ApiObjectGetHashCode.) | |
GetInstance | Produces an instance. | |
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