auto registration of scheduled jobs

This commit is contained in:
Shaun Walker
2021-01-17 11:46:09 -05:00
parent 1276c0269e
commit a2029a3ca3
3 changed files with 53 additions and 21 deletions

View File

@ -14,7 +14,13 @@ namespace Oqtane.Infrastructure
{
// JobType = "Oqtane.Infrastructure.NotificationJob, Oqtane.Server"
public NotificationJob(IServiceScopeFactory serviceScopeFactory) : base(serviceScopeFactory) {}
public NotificationJob(IServiceScopeFactory serviceScopeFactory) : base(serviceScopeFactory)
{
Name = "Notification Job";
Frequency = "m"; // minute
Interval = 1;
IsEnabled = false;
}
public override string ExecuteJob(IServiceProvider provider)
{