public DumpDataService(ILogger <DumpDataService> logger, NationStatesApiService apiService) { _logger = logger; _apiService = apiService; defaultEventId = LogEventIdProvider.GetEventIdByType(LoggingEvent.DumpDataServiceAction); _logger.LogInformation(defaultEventId, GetLogMessage("--- DumpDataService started ---")); }
public DumpDataService(ILogger <DumpDataService> logger, NationStatesApiService apiService, IOptions <AppSettings> config) { _logger = logger; _apiService = apiService; _appconf = config.Value; _defaultEventId = LogEventIdProvider.GetEventIdByType(LoggingEvent.DumpDataServiceAction); _logger.LogInformation(_defaultEventId, GetLogMessage("--- DumpDataService started ---")); }
public RecruitmentService(ILogger <RecruitmentService> logger, IOptions <AppSettings> appSettings, NationStatesApiService apiService, DumpDataService dumpDataService) { _logger = logger; _config = appSettings.Value; _apiService = apiService; _dumpDataService = dumpDataService; _defaulEventId = LogEventIdProvider.GetEventIdByType(LoggingEvent.APIRecruitment); _rnd = new Random(); if (!_config.EnableRecruitment) { RecruitmentStatus = "Disabled"; } }