Beispiel #1
0
        public BackgroundServiceExceptionHandler(ILoggerFactory loggerFactory)
        {
            if (loggerFactory == null)
            {
                throw new ArgumentNullException(nameof(loggerFactory));
            }

            Logger    = new BackgroundServiceErrorLogger(loggerFactory.CreateLogger <BackgroundServiceErrorLogger>());
            Collector = new BackgroundServiceErrorCollector();

            this.inners = new Collection <IBackgroundServiceExceptionHandler>()
            {
                Logger,
                Collector
            };
        }
 public BackgroundServiceErrorCollectorTests()
 {
     this.subject = new BackgroundServiceErrorCollector();
 }