DiagnosticType Enumeration

Simple Injector
Specifies the list of diagnostic types that are currently supported by the diagnostic Analyzer. Note that new diagnostic types might be added in future versions. For more information, please read the Diagnosing your configuration using the Diagnostic Services wiki documentation.

Namespace:  SimpleInjector.Diagnostics
Assembly:  SimpleInjector (in SimpleInjector.dll) Version: 5.3.0
Syntax

public enum DiagnosticType
Members

  Member nameValueDescription
ContainerRegisteredComponent0 Diagnostic type that warns about a concrete type that was not registered explicitly and was not resolved using unregistered type resolution, but was created by the container using the transient lifestyle. For more information, see: https://simpleinjector.org/diaut.
LifestyleMismatch1 Diagnostic type that warns when a component depends on a service with a lifestyle that is shorter than that of the component. For more information, see: https://simpleinjector.org/dialm.
ShortCircuitedDependency2 Diagnostic type that warns when a component depends on an unregistered concrete type and this concrete type has a lifestyle that is different than the lifestyle of an explicitly registered type that uses this concrete type as its implementation. For more information, see: https://simpleinjector.org/diasc.
SingleResponsibilityViolation3 Diagnostic type that warns when a component depends on (too) many services. For more information, see: https://simpleinjector.org/diasr.
TornLifestyle4 Diagnostic type that warns when multiple registrations map to the same component and lifestyle, which might cause multiple instances to be created during the lifespan of that lifestyle. For more information, see: https://simpleinjector.org/diatl.
DisposableTransientComponent5 Diagnostic type that warns when a component is registered as transient, while implementing IDisposable. For more information, see: https://simpleinjector.org/diadt.
AmbiguousLifestyles6 Diagnostic type that warns when multiple registrations exist that map to the same component but with different lifestyles, which will cause the component to be cached in different -possibly incompatible- ways. For more information, see: https://simpleinjector.org/diaal.
See Also

Reference