Пример #1
0
 public LoggingProvider(IApplicationLoggingService applicationLoggingService, IDateTimeService dateTimeService)
 {
     this.applicationLoggingService = applicationLoggingService
                                      ?? throw new ArgumentNullException(nameof(applicationLoggingService));
     this.dateTimeService = dateTimeService ?? throw new ArgumentNullException(nameof(dateTimeService));
 }
Пример #2
0
 private ILoggingService NewLoggingProvider(IApplicationLoggingService applicationLoggingService,
                                            IDateTimeService dateTimeService)
 {
     return(new LoggingProvider(applicationLoggingService, dateTimeService));
 }