Table of Contents

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

runtimeSources IEnumerable<IRuntimeDiagnosticSource>
observers IEnumerable<IDiagnosticObserver>
eventListeners IEnumerable<EventListener>
logger ILogger<DiagnosticsManager>

Properties

Instance

public static DiagnosticsManager Instance { get; }

Property Value

DiagnosticsManager

Observers

public IList<IDiagnosticObserver> Observers { get; }

Property Value

IList<IDiagnosticObserver>

Sources

public IList<IRuntimeDiagnosticSource> Sources { get; }

Property Value

IList<IRuntimeDiagnosticSource>

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

disposing bool

~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

error Exception

An object that provides additional information about the error.

OnNext(DiagnosticListener)

Provides the observer with new data.

public void OnNext(DiagnosticListener value)

Parameters

value DiagnosticListener

The current notification information.

Start()

public void Start()

Stop()

public void Stop()