IDiagnosticsHost public interface IDiagnosticsHost Hosts different diagnostics available in the container. Documentation Code void AddDiagnostic<TDiagnostic>(TDiagnostic diagnostic) where TDiagnostic : IDiagnostic<object> Adds diagnostic and makes it available as TDiagnostic. TDiagnostic GetDiagnostic<TDiagnostic>() where TDiagnostic : IDiagnostic<object> Returns diagnostic registered with TDiagnostic or null if not present.