Diagnostic result that warns about when a multiple registrations map to the same implementation type
and lifestyle, which might cause multiple instances to be created during the lifespan of that lifestyle.
For more information, see: https://simpleinjector.org/diaal.
Inheritance Hierarchy
SimpleInjector.DiagnosticsDiagnosticResult
SimpleInjector.DiagnosticsAmbiguousLifestylesDiagnosticResult
Namespace: SimpleInjector.Diagnostics
Assembly: SimpleInjector (in SimpleInjector.dll) Version: 5.3.0
Syntax
The AmbiguousLifestylesDiagnosticResult type exposes the following members.
Properties
Name | Description | |
---|---|---|
ConflictingRegistrations |
Gets the list of registrations that are in conflict with the DiagnosedRegistration.
| |
Description | Gets the description of the diagnostic result. (Inherited from DiagnosticResult.) | |
DiagnosedRegistration | Gets the registration that caused this warning. | |
DiagnosticType | Gets the diagnostic type of this result. (Inherited from DiagnosticResult.) | |
DocumentationUrl | Gets the documentation URL of the diagnostic result. (Inherited from DiagnosticResult.) | |
Group | Gets the hierarchical group to which this diagnostic result belongs. (Inherited from DiagnosticResult.) | |
ImplementationType | Gets the implementation type that the affected registrations map to. | |
Lifestyles | Gets the lifestyles that causes the registrations to be conflicting. | |
ServiceType | Gets the service type to which this warning is related. (Inherited from DiagnosticResult.) | |
Severity | Gets the severity of this result. (Inherited from DiagnosticResult.) |
See Also