feat Hnagfire初步搭建

This commit is contained in:
cheche
2023-12-29 16:41:24 +08:00
parent f5c8f659e4
commit 66eacb685a
6 changed files with 58 additions and 1 deletions

View File

@@ -0,0 +1,12 @@
using Hangfire;
namespace Dlhis.ScheduledTask
{
public class MyBackgroundJobService
{
public void EnqueueMyJob()
{
BackgroundJob.Enqueue(() => Console.WriteLine("This is a background job."));
}
}
}