Abp Vnext 的 Vue3 实现版本
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 
 
 
 

16 lines
478 B

using Hangfire;
using Microsoft.Extensions.DependencyInjection;
using System;
using CompanyNameProjectName.Jobs;
namespace CompanyNameProjectName.Extensions
{
public static class RecurringJobsExtensions
{
public static void CreateRecurringJob(this IServiceProvider service)
{
var job = service.GetService<TestJob>();
RecurringJob.AddOrUpdate("测试Job", () => job.ExecuteAsync(), CronTypeHelper.Minute(1));
}
}
}