/// <summary> /// Initializes a new instance of the <see cref="T:Quartz.Impl.StdSchedulerFactory" /> class. /// </summary> /// <param name="jobFactory">Job factory.</param> /// <exception cref="ArgumentNullException"><paramref name="jobFactory" /> is <see langword="null" />.</exception> public AutofacSchedulerFactory(AutofacJobFactory jobFactory) { if (jobFactory == null) { throw new ArgumentNullException(nameof(jobFactory)); } _jobFactory = jobFactory; }
/// <summary> /// Initializes a new instance of the <see cref="T:Quartz.Impl.StdSchedulerFactory" /> class. /// </summary> /// <param name="props">The properties.</param> /// <param name="jobFactory">Job factory</param> /// <exception cref="ArgumentNullException"><paramref name="jobFactory" /> is <see langword="null" />.</exception> public AutofacSchedulerFactory(NameValueCollection props, AutofacJobFactory jobFactory) : base(props) { if (jobFactory == null) { throw new ArgumentNullException(nameof(jobFactory)); } _jobFactory = jobFactory; }
/// <summary> /// Initializes a new instance of the <see cref="T:Quartz.Impl.StdSchedulerFactory" /> class. /// </summary> /// <param name="props">The properties.</param> /// <param name="jobFactory">Job factory</param> /// <exception cref="ArgumentNullException"><paramref name="jobFactory" /> is <see langword="null" />.</exception> public AutofacSchedulerFactory(NameValueCollection props, [NotNull] AutofacJobFactory jobFactory) : base(props) { _jobFactory = jobFactory ?? throw new ArgumentNullException(nameof(jobFactory)); }
/// <summary> /// Initializes a new instance of the <see cref="T:Quartz.Impl.StdSchedulerFactory" /> class. /// </summary> /// <param name="jobFactory">Job factory.</param> /// <exception cref="ArgumentNullException"><paramref name="jobFactory" /> is <see langword="null" />.</exception> public AutofacSchedulerFactory([NotNull] AutofacJobFactory jobFactory) { _jobFactory = jobFactory ?? throw new ArgumentNullException(nameof(jobFactory)); }