public LogRabbitRepository( IBus bus, IOptions <QsLogSettings> logSettings) { _bus = bus; _logSettings = logSettings.Value; }
public LogTxtRepository(IOptions <QsLogSettings> logSettings) { if (logSettings == null) { throw new LogException("Configuracao do qsLog nao informada nos Settings"); } _logSettings = logSettings.Value; }
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; }