Пример #1
0
 /// <summary>
 /// Initializes a new instance of the <see cref="LoggerAnnouncer"/> class.
 /// </summary>
 /// <param name="logger"></param>
 /// <param name="options">The announcer options</param>
 public LoggerAnnouncer([NotNull] ILogger logger, [NotNull] AnnouncerOptions options)
 {
     _logger  = logger;
     _options = options;
 }
Пример #2
0
 /// <summary>
 /// Initializes a new instance of the <see cref="LoggerAnnouncer"/> class.
 /// </summary>
 /// <param name="loggerFactory">The logger factory to create the logger from</param>
 /// <param name="options">The announcer options</param>
 public LoggerAnnouncer([NotNull] ILoggerFactory loggerFactory, [NotNull] IOptions <AnnouncerOptions> options)
 {
     _logger  = loggerFactory.CreateLogger(RunnerEventIds.RunnerCategory);
     _options = options.Value;
 }