12 lines
287 B
C#
12 lines
287 B
C#
using Hangfire;
|
|
|
|
namespace Dlhis.ScheduledTask.Job;
|
|
|
|
public static class UseHangfire
|
|
{
|
|
public static void UseHangfireto(this IServiceCollection services)
|
|
{
|
|
GlobalConfiguration.Configuration.UseActivator(new HangfireActivator(services.BuildServiceProvider()));
|
|
}
|
|
}
|