using DS.WMS.Core.HangfireJob.Interface;
using Hangfire;
using Microsoft.AspNetCore.Builder;
namespace DS.WMS.Core.HangfireJob.Method
{
///
/// 注册Hangfire定时任务的中间件
///
public static class JobMiddleware
{
///
/// 注册Hangfire定时任务的中间件
///
///
///
public static WebApplication UseJobMiddlewares(this WebApplication app)
{
//RecurringJob.AddOrUpdate(nameof(IFeeCustTemplateJobService),
// s => s.GenerateFeesAsync(), Cron.Daily(23, 30));
return app;
}
}
}