A known relationship defines a relationship between two types. The Diagnostics Debug View uses this
information to spot possible misconfigurations.
Inheritance Hierarchy
SimpleInjector.AdvancedKnownRelationship
Namespace: SimpleInjector.Advanced
Assembly: SimpleInjector (in SimpleInjector.dll) Version: 5.3.0
Syntax
The KnownRelationship type exposes the following members.
Constructors
| Name | Description | |
|---|---|---|
| KnownRelationship | Initializes a new instance of the KnownRelationship class. |
Properties
| Name | Description | |
|---|---|---|
| Dependency | Gets the type that the parent depends on (it is injected into the parent). | |
| ImplementationType | Gets the implementation type of the parent type of the relationship. | |
| Lifestyle | Gets the lifestyle of the parent type of the relationship. |
Methods
| Name | Description | |
|---|---|---|
| Equals(Object) | Determines whether the specified object is equal to the current object. (Overrides ObjectEquals(Object).) | |
| Equals(KnownRelationship) | Indicates whether the current object is equal to another object of the same type. | |
| GetHashCode | Serves as the default hash function. (Overrides ObjectGetHashCode.) |
See Also