移动系统liao
2024-08-27 1571dee924ea10cdcb55300cf02f70c6208c0333
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
using Furion;
using Furion.Schedule;
using Microsoft.AspNetCore.Builder;
using Microsoft.AspNetCore.Hosting;
using Microsoft.Extensions.DependencyInjection;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
 
namespace EzJob
{
    public class Startup : AppStartup
    {
        public void ConfigureServices(IServiceCollection services)
        {
 
            services.AddSchedule(options =>
            {
                options.AddJob<WeChatJob>(concurrent: false, Triggers.Hourly()); // 串行
            });
        }
 
        public void Configure(IApplicationBuilder app, IWebHostEnvironment env)
        {
 
        }
    }
}