SimpleInjector.Diagnostics Namespace

Simple Injector
The SimpleInjector.Diagnostics namespace contains diagnostic features for Simple Injector.
Classes

  ClassDescription
Public classAmbiguousLifestylesDiagnosticResult
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.
Public classCode exampleAnalyzer
Entry point for doing diagnostic analysis on Container instances.
Public classContainerRegisteredServiceDiagnosticResult
Diagnostic result for a warning 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.
Public classDiagnosticGroup
A hierarchical group of DiagnosticResult.
Public classDiagnosticResult
Base class for types that hold information about a single diagnostic message or warning for a particular type or part of the configuration.
Public classDisposableTransientComponentDiagnosticResult
Diagnostic result for a warning about a component that is registered as transient, but implements IDisposable. For more information, see: https://simpleinjector.org/diadt.
Public classLifestyleMismatchDiagnosticResult
Diagnostic result for a warning about a component that depends on a service with a lifestyle that is shorter than that of the component. For more information, see: https://simpleinjector.org/dialm.
Public classShortCircuitedDependencyDiagnosticResult
Diagnostic result that warns about a component that 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.
Public classSingleResponsibilityViolationDiagnosticResult
Diagnostic result that warns about a component that depends on (too) many services. For more information, see: https://simpleinjector.org/diasr.
Public classTornLifestyleDiagnosticResult
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/diatl.
Enumerations

  EnumerationDescription
Public enumerationDiagnosticSeverity
Specifies the list of severity levels that diagnostic results can have.
Public enumerationDiagnosticType
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.