初始化CRICS

This commit is contained in:
2025-12-11 09:17:16 +08:00
commit 83247ec0a2
2735 changed files with 787765 additions and 0 deletions

25
WebSite/Job/MyRegistry.cs Normal file
View File

@@ -0,0 +1,25 @@
using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using FluentScheduler;
namespace WebSite.Job
{
public class MyRegistry : Registry
{
public MyRegistry()
{
Welcome();
}
private void Welcome()
{
Schedule(() => Console.Write("3, "))
.WithName("[welcome]")
.AndThen(() => Console.Write("2, "))
.AndThen(() => Console.Write("1, "))
.AndThen(() => Console.WriteLine("Live!")).ToRunEvery(20).Seconds();
}
}
}