Пример #1
0
 public DiagnosticSourceSubscriber(
     ListenerHandler handler,
     Func <string, object, object, bool> isEnabledFilter)
     : this(_ => handler, value => handler.SourceName == value.Name, isEnabledFilter)
 {
 }
        public DiagnosticSourceListener(ListenerHandler handler)
        {
            Guard.Null(handler, nameof(handler));

            this.handler = handler;
        }
 public DiagnosticSourceListener(ListenerHandler handler)
 {
     this.handler = handler ?? throw new ArgumentNullException(nameof(handler));
 }
Пример #4
0
        public DiagnosticSourceListener(ListenerHandler handler)
        {
            Guard.ThrowIfNull(handler);

            this.handler = handler;
        }