示例#1
0
 public CustomEventHandler(
     [NotNull] ILoggerContext context,
     [NotNull] IMessageWriter messageWriter,
     [NotNull] IDeferredMessageWriter deferredMessageWriter)
 {
     _deferredMessageWriter = deferredMessageWriter ?? throw new ArgumentNullException(nameof(deferredMessageWriter));
     _messageWriter         = messageWriter ?? throw new ArgumentNullException(nameof(messageWriter));
     _context = context ?? throw new ArgumentNullException(nameof(context));
 }
示例#2
0
 public MessageHandler(
     [NotNull] ILoggerContext context,
     [NotNull] IMessageWriter messageWriter,
     [NotNull] IDeferredMessageWriter deferredMessageWriter,
     [NotNull] IBuildEventManager buildEventManager)
 {
     _buildEventManager     = buildEventManager ?? throw new ArgumentNullException(nameof(buildEventManager));
     _deferredMessageWriter = deferredMessageWriter ?? throw new ArgumentNullException(nameof(deferredMessageWriter));
     _messageWriter         = messageWriter ?? throw new ArgumentNullException(nameof(messageWriter));
     _context = context ?? throw new ArgumentNullException(nameof(context));
 }
 public WarningHandler(
     [NotNull] ILoggerContext context,
     [NotNull] ILogWriter logWriter,
     [NotNull] IMessageWriter messageWriter,
     [NotNull] IDeferredMessageWriter deferredMessageWriter,
     [NotNull] IBuildEventManager buildEventManager,
     [NotNull] IEventFormatter eventFormatter)
 {
     _eventFormatter       = eventFormatter ?? throw new ArgumentNullException(nameof(eventFormatter));
     _buildEventManager    = buildEventManager ?? throw new ArgumentNullException(nameof(buildEventManager));
     _deferredMessageWrite = deferredMessageWriter ?? throw new ArgumentNullException(nameof(deferredMessageWriter));
     _messageWriter        = messageWriter ?? throw new ArgumentNullException(nameof(messageWriter));
     _context   = context ?? throw new ArgumentNullException(nameof(context));
     _logWriter = logWriter ?? throw new ArgumentNullException(nameof(logWriter));
 }
 public TaskFinishedHandler(
     [NotNull] ILoggerContext context,
     [NotNull] ILogWriter logWriter,
     [NotNull] IPerformanceCounterFactory performanceCounterFactory,
     [NotNull] IMessageWriter messageWriter,
     [NotNull] IDeferredMessageWriter deferredMessageWriter,
     [NotNull] IStringService stringService)
 {
     _stringService         = stringService ?? throw new ArgumentNullException(nameof(stringService));
     _deferredMessageWriter = deferredMessageWriter ?? throw new ArgumentNullException(nameof(deferredMessageWriter));
     _messageWriter         = messageWriter ?? throw new ArgumentNullException(nameof(messageWriter));
     _context   = context ?? throw new ArgumentNullException(nameof(context));
     _logWriter = logWriter ?? throw new ArgumentNullException(nameof(logWriter));
     _performanceCounterFactory = performanceCounterFactory ?? throw new ArgumentNullException(nameof(performanceCounterFactory));
 }
 public ProjectFinishedHandler(
     [NotNull] ILoggerContext context,
     [NotNull] ILogWriter logWriter,
     [NotNull] IPerformanceCounterFactory performanceCounterFactory,
     [NotNull] IMessageWriter messageWriter,
     [NotNull] IHierarchicalMessageWriter hierarchicalMessageWriter,
     [NotNull] IDeferredMessageWriter deferredMessageWriter,
     [NotNull] IBuildEventManager buildEventManager,
     [NotNull] IStringService stringService)
 {
     _stringService             = stringService ?? throw new ArgumentNullException(nameof(stringService));
     _hierarchicalMessageWriter = hierarchicalMessageWriter ?? throw new ArgumentNullException(nameof(hierarchicalMessageWriter));
     _buildEventManager         = buildEventManager ?? throw new ArgumentNullException(nameof(buildEventManager));
     _deferredMessageWriter     = deferredMessageWriter ?? throw new ArgumentNullException(nameof(deferredMessageWriter));
     _messageWriter             = messageWriter ?? throw new ArgumentNullException(nameof(messageWriter));
     _context = context ?? throw new ArgumentNullException(nameof(context));
     _performanceCounterFactory = performanceCounterFactory ?? throw new ArgumentNullException(nameof(performanceCounterFactory));
     _logWriter = logWriter ?? throw new ArgumentNullException(nameof(logWriter));
 }