Rystem.BackgroundJob 6.0.4

dotnet add package Rystem.BackgroundJob --version 6.0.4
NuGet\Install-Package Rystem.BackgroundJob -Version 6.0.4
This command is intended to be used within the Package Manager Console in Visual Studio, as it uses the NuGet module's version of Install-Package.
<PackageReference Include="Rystem.BackgroundJob" Version="6.0.4" />
For projects that support PackageReference, copy this XML node into the project file to reference the package.
paket add Rystem.BackgroundJob --version 6.0.4
#r "nuget: Rystem.BackgroundJob, 6.0.4"
#r directive can be used in F# Interactive and Polyglot Notebooks. Copy this into the interactive tool or source code of the script to reference the package.
// Install Rystem.BackgroundJob as a Cake Addin
#addin nuget:?package=Rystem.BackgroundJob&version=6.0.4

// Install Rystem.BackgroundJob as a Cake Tool
#tool nuget:?package=Rystem.BackgroundJob&version=6.0.4

Background job

Background job is a library that helps to create a background thread in your application (webapp or similar). With the dependency injection pattern, you may set che CRON value (when your job has to run), link to create CRON. You may set to true the RunImmediately if you want to run one time during your bootstrap. You may set the Key to allow the possibility to have more than one job with the same class on the same instance.

builder.Services.AddBackgroundJob<BackgroundJob>(
    x =>
    {
        x.Cron = "*/1 * * * *";
        x.RunImmediately = true;
        x.Key = "alzo";
    });

Your class BackgroundJob has to extend IBackgrounJob and you may warm up it during the bootstrap.

var app = builder.Build();
await app.Services.WarmUpAsync();

In IBackgroundJob you have ActionToDoAsync, it's the main method, called when the cron is fired; and OnException to catch the possibile exception during the main method run.

Product Compatible and additional computed target framework versions.
.NET net8.0 is compatible.  net8.0-android was computed.  net8.0-browser was computed.  net8.0-ios was computed.  net8.0-maccatalyst was computed.  net8.0-macos was computed.  net8.0-tvos was computed.  net8.0-windows was computed. 
Compatible target framework(s)
Included target framework(s) (in package)
Learn more about Target Frameworks and .NET Standard.

NuGet packages (1)

Showing the top 1 NuGet packages that depend on Rystem.BackgroundJob:

Package Downloads
Rystem.Queue

Rystem.

GitHub repositories

This package is not used by any popular GitHub repositories.

Version Downloads Last updated
6.0.4 104 4/3/2024
6.0.3 116 3/25/2024
6.0.2 969 3/11/2024
6.0.1 141 3/8/2024
6.0.0 526 11/21/2023
6.0.0-rc.6 87 10/25/2023
6.0.0-rc.5 67 10/25/2023
6.0.0-rc.4 58 10/23/2023
6.0.0-rc.3 54 10/19/2023
6.0.0-rc.2 59 10/18/2023
6.0.0-rc.1 62 10/16/2023
5.0.20 615 9/25/2023
5.0.19 1,263 9/10/2023
5.0.18 502 9/6/2023
5.0.17 487 9/6/2023
5.0.16 469 9/5/2023
5.0.15 461 9/5/2023
5.0.14 500 9/5/2023
5.0.13 611 9/1/2023
5.0.12 459 8/31/2023
5.0.11 456 8/30/2023
5.0.10 487 8/29/2023
5.0.9 485 8/24/2023
5.0.8 473 8/24/2023
5.0.7 470 8/23/2023
5.0.6 502 8/21/2023
5.0.5 484 8/21/2023
5.0.4 506 8/16/2023
5.0.3 587 8/2/2023
5.0.2 568 8/2/2023
5.0.1 596 8/1/2023
5.0.0 582 7/31/2023
4.1.26 819 7/20/2023
4.1.25 587 7/16/2023
4.1.24 683 6/13/2023
4.1.23 570 6/13/2023
4.1.22 555 5/30/2023
4.1.21 580 5/20/2023
4.1.20 315,772 4/19/2023
4.1.19 95,286 3/20/2023
4.1.18 659 3/20/2023
4.1.17 652 3/16/2023
4.1.16 646 3/16/2023
4.1.15 1,109 3/15/2023
4.1.14 1,774 3/9/2023
4.1.13 619 3/7/2023
4.1.12 695 2/10/2023
4.1.11 712 1/26/2023
4.1.10 719 1/22/2023
4.1.9 721 1/20/2023
4.1.8 732 1/18/2023
4.1.7 720 1/18/2023
4.1.6 713 1/17/2023
4.1.1 712 1/4/2023
4.1.0 730 12/30/2022
3.0.25 815 12/21/2022
3.0.24 833 11/18/2022
3.0.23 825 11/18/2022
3.0.22 847 11/15/2022
3.0.21 815 11/14/2022
3.0.20 845 11/13/2022
3.0.19 860 11/2/2022
3.0.18 836 11/2/2022
3.0.17 907 10/29/2022
3.0.16 902 10/29/2022
3.0.15 892 10/29/2022
2.0.6 932 9/20/2022
2.0.5 918 9/20/2022
2.0.4 836 9/20/2022
2.0.3 974 9/20/2022
2.0.1 1,033 9/13/2022
2.0.0 836 8/19/2022
1.1.23 1,079 7/30/2022
1.1.22 971 7/29/2022
1.1.21 940 7/29/2022
1.1.20 993 7/29/2022
1.1.19 1,010 7/27/2022
1.1.17 936 7/27/2022
1.1.15 957 7/25/2022
1.1.14 964 7/25/2022
1.1.13 917 7/22/2022
1.1.12 958 7/19/2022
1.1.11 960 7/19/2022
1.1.10 967 7/19/2022
1.1.9 975 7/19/2022
1.1.8 963 7/18/2022
1.1.7 954 7/18/2022
1.1.6 953 7/18/2022
1.0.4 963 7/17/2022
1.0.2 1,010 7/17/2022
1.0.1 855 7/12/2022
1.0.0 1,218 7/8/2022
0.10.7 993 7/8/2022
0.9.11 992 6/30/2022
0.9.10 933 6/29/2022
0.9.9 955 6/28/2022