Exemple #1
0
 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));
 }
Exemple #3
0
 public ExpensesRecordService(IRepositoryFactory repositoryFactory, IOptions <BitrixConfig> bitrixOptions) : base(repositoryFactory)
 {
     _bitrixConfig = bitrixOptions.Value ?? throw new ArgumentNullException(nameof(bitrixOptions));
 }