public DiagnosticsListener(IList<IDiagnosticsSender> senders)
        {
            if (senders == null || senders.Count < 1)
            {
                throw new ArgumentNullException("senders");
            }

            this.diagnosticsSenders = senders;
            this.eventListener = new DiagnosticsEventListener(this, this.LogLevel);
        }
        public DiagnosticsListener(IList <IDiagnosticsSender> senders)
        {
            if (senders == null || senders.Count < 1)
            {
                throw new ArgumentNullException(nameof(senders));
            }

            this.diagnosticsSenders = senders;
            this.eventListener      = new DiagnosticsEventListener(this, this.LogLevel);
        }
 /// <summary>
 /// Initializes a new instance of the <see cref="TraceSourceForEventSource" /> class.
 /// </summary>
 public TraceSourceForEventSource(SourceLevels defaultLevel)
     : base(TraceSourceName, defaultLevel)
 {
     this.listener = new DiagnosticsEventListener(GetEventLevelFromSourceLevels(defaultLevel), (EventKeywords)AllKeyword, this);
 }
 /// <summary>
 /// Initializes a new instance of the <see cref="TraceSourceForEventSource" /> class.
 /// </summary>
 public TraceSourceForEventSource(EventLevel defaultLevel)
     : base(TraceSourceName, GetSourceLevelsForEventLevel(defaultLevel))
 {
     this.listener = new DiagnosticsEventListener(defaultLevel, (EventKeywords)AllKeyword, this);
 }
 /// <summary>
 /// Initializes a new instance of the <see cref="TraceSourceForEventSource" /> class.
 /// </summary>
 public TraceSourceForEventSource()
     : base(TraceSourceName)
 {
     this.listener = new DiagnosticsEventListener(EventLevel.Error, (EventKeywords)AllKeyword, this);
 }