Refactored Indexer models
This commit is contained in:
10
src/Indexer/ActionJob.cs
Normal file
10
src/Indexer/ActionJob.cs
Normal file
@@ -0,0 +1,10 @@
|
||||
using Quartz;
|
||||
public class ActionJob : IJob
|
||||
{
|
||||
public Task Execute(IJobExecutionContext context)
|
||||
{
|
||||
var action = (Action)context.MergedJobDataMap["action"];
|
||||
action?.Invoke();
|
||||
return Task.CompletedTask;
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user