コード例 #1
0
        public CronExpressionGeneratorSpecs()
        {
            var serviceProvider = new ServiceCollection()
                                  .AddSchedulingEngine()
                                  .BuildServiceProvider();

            cronExpressionGenerator = serviceProvider.GetService <ICronExpressionGenerator>();
        }
コード例 #2
0
 public ScheduledJobBuilder(ICronExpressionGenerator cronExpressionGenerator)
 {
     this.cronExpressionGenerator = cronExpressionGenerator;
 }