Browse Source

Added braces and removed null check on StartDelay.

pull/3454/head
Oliver Cooper 7 years ago
parent
commit
b0f954036b
  1. 6
      framework/src/Volo.Abp.Quartz/Volo/Abp/Quartz/AbpQuartzModule.cs

6
framework/src/Volo.Abp.Quartz/Volo/Abp/Quartz/AbpQuartzModule.cs

@ -26,10 +26,14 @@ namespace Volo.Abp.Quartz
_scheduler = context.ServiceProvider.GetService<IScheduler>();
_scheduler.JobFactory = context.ServiceProvider.GetService<IJobFactory>();
if (options.StartDelay != null && options.StartDelay.Ticks > 0)
if (options.StartDelay.Ticks > 0)
{
_scheduler.StartDelayed(options.StartDelay);
}
else
{
_scheduler.Start();
}
}
public override void OnApplicationShutdown(ApplicationShutdownContext context)

Loading…
Cancel
Save