public AppPropertyService(IRepositoryFactory repositoryFactory, IOptions <ADConfig> adOptions, IOptions <BitrixConfig> bitrixOptions, IOptions <OnlyOfficeConfig> onlyOfficeOptions, IOptions <TimesheetConfig> timesheetOptions) : base(repositoryFactory) { _timesheetConfig = timesheetOptions.Value ?? throw new ArgumentNullException(nameof(timesheetOptions)); _adConfig = adOptions.Value ?? throw new ArgumentNullException(nameof(adOptions)); _bitrixConfig = bitrixOptions.Value ?? throw new ArgumentNullException(nameof(bitrixOptions)); _onlyOfficeConfig = onlyOfficeOptions.Value ?? throw new ArgumentNullException(nameof(onlyOfficeOptions)); }
public QuartzHostedService( ISchedulerFactory schedulerFactory, IJobFactory jobFactory, IOptions <ADConfig> adOptions, IOptions <BitrixConfig> bitrixOptions, IOptions <TimesheetConfig> timesheetOptions) { _schedulerFactory = schedulerFactory; _jobFactory = jobFactory; _timesheetConfig = timesheetOptions.Value ?? throw new ArgumentNullException(nameof(timesheetOptions)); _adConfig = adOptions.Value ?? throw new ArgumentNullException(nameof(adOptions)); _bitrixConfig = bitrixOptions.Value ?? throw new ArgumentNullException(nameof(bitrixOptions)); }
public TimesheetJob( DbContextOptions <RPCSContext> dbOptions, IHttpContextAccessor httpContextAccessor, IMemoryCache memoryCache, IOptions <ADConfig> adConfigOptions, IOptions <BitrixConfig> bitrixConfigOptions, IOptions <OnlyOfficeConfig> onlyOfficeOptions, IOptions <TimesheetConfig> timesheetConfigOptions, IOptions <SMTPConfig> smtpConfigOptions, IOptions <JiraConfig> jiraConfigOptions, ILogger <TimesheetJob> timesheetJobLogger, ILogger <TSHoursRecordService> tsHoursRecordServiceLogger) { _dbOptions = dbOptions; _httpContextAccessor = httpContextAccessor; _memoryCache = memoryCache; _adConfigOptions = adConfigOptions; _bitrixConfigOptions = bitrixConfigOptions; _onlyOfficeOptions = onlyOfficeOptions; _timesheetConfigOptions = timesheetConfigOptions; _smtpConfigOptions = smtpConfigOptions; _jiraConfigOptions = jiraConfigOptions; _timesheetJobLogger = timesheetJobLogger; _tsHoursRecordServiceLogger = tsHoursRecordServiceLogger; _timesheetConfig = timesheetConfigOptions.Value; }