Пример #1
0
 public LogRabbitRepository(
     IBus bus,
     IOptions <QsLogSettings> logSettings)
 {
     _bus         = bus;
     _logSettings = logSettings.Value;
 }
Пример #2
0
        public LogTxtRepository(IOptions <QsLogSettings> logSettings)
        {
            if (logSettings == null)
            {
                throw new LogException("Configuracao do qsLog nao informada nos Settings");
            }

            _logSettings = logSettings.Value;
        }
Пример #3
0
        public LogService(IOptions <QsLogSettings> logSettings,
                          ILogRepository logRepository,
                          ILogTxtRespository logTxtRepository)
        {
            if (logSettings == null)
            {
                throw new LogException("Configuracao do qsLog nao informada nos Settings");
            }

            _logSettings      = logSettings.Value;
            _logRepository    = logRepository;
            _logTxtRepository = logTxtRepository;
        }