摘要: using Topshelf; using TopShelf6Test; Console.WriteLine("Hello, World!"); HostFactory.Run(x => { x.Service<MyService>(s => { s.ConstructUsing(name => n 阅读全文
posted @ 2023-07-04 17:26 elegydance 阅读(80) 评论(0) 推荐(0) 编辑
摘要: using Quartz; namespace QuartzTest { public class HelloJob : IJob { public async Task Execute(IJobExecutionContext context) { await Console.Out.WriteL 阅读全文
posted @ 2023-07-04 17:23 elegydance 阅读(167) 评论(0) 推荐(0) 编辑
摘要: using Serilog; class Program { static void Main(string[] args) { Log.Logger = new LoggerConfiguration() .WriteTo.Console() .WriteTo.File("logs/app.log 阅读全文
posted @ 2023-07-04 17:19 elegydance 阅读(118) 评论(0) 推荐(0) 编辑