Class DiagnosticsManager
- Namespace
- Steeltoe.Common.Diagnostics
- Assembly
- Steeltoe.Management.Abstractions.dll
[Obsolete("This feature will be removed in the next major version. See https://steeltoe.io/docs/v3/obsolete for details.")]
public class DiagnosticsManager : IObserver<DiagnosticListener>, IDisposable, IDiagnosticsManager
- Inheritance
-
DiagnosticsManager
- Implements
- Inherited Members
Constructors
DiagnosticsManager(IEnumerable<IRuntimeDiagnosticSource>, IEnumerable<IDiagnosticObserver>, IEnumerable<EventListener>, ILogger<DiagnosticsManager>)
public DiagnosticsManager(IEnumerable<IRuntimeDiagnosticSource> runtimeSources, IEnumerable<IDiagnosticObserver> observers, IEnumerable<EventListener> eventListeners, ILogger<DiagnosticsManager> logger = null)
Parameters
runtimeSourcesIEnumerable<IRuntimeDiagnosticSource>observersIEnumerable<IDiagnosticObserver>eventListenersIEnumerable<EventListener>loggerILogger<DiagnosticsManager>
Properties
Instance
public static DiagnosticsManager Instance { get; }
Property Value
Observers
public IList<IDiagnosticObserver> Observers { get; }
Property Value
Sources
public IList<IRuntimeDiagnosticSource> Sources { get; }
Property Value
Methods
Dispose()
Performs application-defined tasks associated with freeing, releasing, or resetting unmanaged resources.
public void Dispose()
Dispose(bool)
protected virtual void Dispose(bool disposing)
Parameters
disposingbool
~DiagnosticsManager()
protected ~DiagnosticsManager()
OnCompleted()
Notifies the observer that the provider has finished sending push-based notifications.
public void OnCompleted()
OnError(Exception)
Notifies the observer that the provider has experienced an error condition.
public void OnError(Exception error)
Parameters
errorExceptionAn object that provides additional information about the error.
OnNext(DiagnosticListener)
Provides the observer with new data.
public void OnNext(DiagnosticListener value)
Parameters
valueDiagnosticListenerThe current notification information.
Start()
public void Start()
Stop()
public void Stop()