🎉 Initial commit for the Zone project
This commit is contained in:
17
DysonNetwork.Zone/Startup/ScheduledJobsConfiguration.cs
Normal file
17
DysonNetwork.Zone/Startup/ScheduledJobsConfiguration.cs
Normal file
@@ -0,0 +1,17 @@
|
||||
using Quartz;
|
||||
|
||||
namespace DysonNetwork.Zone.Startup;
|
||||
|
||||
public static class ScheduledJobsConfiguration
|
||||
{
|
||||
public static IServiceCollection AddAppScheduledJobs(this IServiceCollection services)
|
||||
{
|
||||
services.AddQuartz(q =>
|
||||
{
|
||||
|
||||
});
|
||||
services.AddQuartzHostedService(q => q.WaitForJobsToComplete = true);
|
||||
|
||||
return services;
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user