|
|
|
@ -39,7 +39,7 @@ public class HangfireJobExecutionAdapter<TArgs> |
|
|
|
using (var scope = ServiceScopeFactory.CreateScope()) |
|
|
|
{ |
|
|
|
var jobType = Options.GetJob(typeof(TArgs)).JobType; |
|
|
|
var context = new JobExecutionContext(scope.ServiceProvider, jobType, args, cancellationToken: cancellationToken); |
|
|
|
var context = new JobExecutionContext(scope.ServiceProvider, jobType, args!, cancellationToken: cancellationToken); |
|
|
|
await JobExecuter.ExecuteAsync(context); |
|
|
|
} |
|
|
|
} |
|
|
|
|