コード例 #1
0
ファイル: AppPropertyService.cs プロジェクト: Alekseyya/SKEP
 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));
 }
コード例 #2
0
ファイル: QuartzHostedService.cs プロジェクト: Alekseyya/SKEP
 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));
 }
コード例 #3
0
 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;
 }