Schedulr NuGet Package

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" }
}.




Got any Schedulr Question?





Info

Version: 1.5.1
Author(s): Burak Aydemir
Last Update: Monday, January 4, 2021
.NET Fiddle: Create the first Fiddle
NuGet Url: https://www.nuget.org/packages/Schedulr


Install
Install-Package Schedulr
dotnet add package Schedulr
paket add Schedulr
Schedulr Download (Unzip the "nupkg" after downloading)

.NETFramework 4.7 .NETStandard 2.0 net461 net462 net471 net472 net48 netstandard2.1


Tags



STATS

must-have-score

1.5

avg-downloads-per-day

2

days-since-last-release

1419