Exemplo n.º 1
0
        public static async Task <IScheduler> GetDefaultScheduler(string instanceName, string connectionString,
                                                                  CancellationToken cancellationToken = default(CancellationToken))
        {
            var config = new QuartzConfiguration(instanceName, connectionString);

            return(await new StdSchedulerFactory(PropsBuilder.Build(config)).GetScheduler(cancellationToken));
        }
Exemplo n.º 2
0
 public static async Task <IScheduler> GetDefaultScheduler(QuartzConfiguration configuration,
                                                           CancellationToken cancellationToken = default(CancellationToken))
 {
     return(await new StdSchedulerFactory(PropsBuilder.Build(configuration)).GetScheduler(cancellationToken));
 }