public DiagnosticSourceSubscriber(
     ListenerHandler handler,
     Func <string, object, object, bool> filter)
 {
     this.handler = handler ?? throw new ArgumentNullException(nameof(handler));
     this.filter  = filter;
 }
 public DiagnosticSourceSubscriber(
     ListenerHandler handler,
     Func <DiagnosticListener, bool> diagnosticSourceFilter,
     Func <string, object, object, bool> filter)
 {
     this.listenerSubscriptions = new List <IDisposable>();
     this.handler = handler ?? throw new ArgumentNullException(nameof(handler));
     this.diagnosticSourceFilter = diagnosticSourceFilter;
     this.filter = filter;
 }
 public DiagnosticSourceSubscriber(
     ListenerHandler handler,
     Func <string, object, object, bool> filter) : this(handler, value => handler.SourceName == value.Name, filter)
 {
 }
Ejemplo n.º 4
0
 public DiagnosticSourceListener(ListenerHandler handler)
 {
     this.handler = handler ?? throw new ArgumentNullException(nameof(handler));
 }