Schedule your jobs using cron expressions. -just update your schedulrsettings.json as what you want. -use like below lines in your Program.cs SchedulrManager.Build("My Service"); SchedulrManager.Add(() => { Console.WriteLine("Foo"); }); SchedulrManager.Add(MyMethod); SchedulrManager.Add(new MyJob()); SchedulrManager.Start(); -for install as a windows service run "applicationname.exe install" -if you want to use File log for Serilog just use "Install-Package Serilog.Sinks.File" and add this below line to schedulrsettings.json. { "Name": "File", "Args": { "path": ".\\Logs\\.txt", "rollingInterval": "Day", "retainedFileCountLimit": null, "outputTemplate": "[{Level:u3}] {Timestamp} | {SourceContext} | {Application}-{Environment} ({AssemblyVersion}) | {MachineName}{NewLine}{Message:lj}{NewLine}{Exception}" } }, -if you want to use Seq for Serilog just use "Install-Package Serilog.Sinks.Seq" and add this below line to schedulrsettings.json. { "Name": "Seq", "Args": { "serverUrl": "http://localhost:5341" } }
License
—
Deps
104
Install Size
—
Vulns
✓ 0
Published
Jan 4, 2021
$ dotnet add package SchedulrNo README available.