PostSharp.ILAPI ReferencePost­Sharp.​Patterns.​Diagnostics.​Adapters.​Diagnostic­SourceDiagnostic­Source­Collecting­Listener
Open sandboxFocus

DiagnosticSourceCollectingListener Class

Subscribes to DiagnosticListener and emits messages and activities to PostSharp Logging. After calling the constructor, you must call the FollowActivity(String, IDiagnosticSourceActivityFilter) and then Subscribe() methods to start listening to events.

Inheritance
DiagnosticSourceCollectingListener
Implements
IObserver<DiagnosticListener>
System.IDisposable
Namespace: PostSharp.Patterns.Diagnostics.Adapters.DiagnosticSource
Assembly: PostSharp.Patterns.Diagnostics.Adapters.DiagnosticSource.dll
Syntax
public sealed class DiagnosticSourceCollectingListener : Object

Constructors

Name Description
DiagnosticSourceCollectingListener(LogLevel)

Initializes a new DiagnosticSourceCollectingListener and subscribes to all sources.

DiagnosticSourceCollectingListener(String[], LogLevel)

Initializes a new DiagnosticSourceCollectingListener and specifies the list of sources to follow.

Methods

Name Description
Dispose()

Performs application-defined tasks associated with freeing, releasing, or resetting unmanaged resources.

FollowActivity(String, IDiagnosticSourceActivityFilter)

Follows a specific activity.

Subscribe()

Subscribes to event sources.