Ejemplo n.º 1
0
 /// <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;
 }
Ejemplo n.º 2
0
 /// <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;
 }
Ejemplo n.º 3
0
 /// <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));
 }
Ejemplo n.º 4
0
 /// <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));
 }