Rystem.BackgroundJob 9.0.21

There is a newer version of this package available.
See the version list below for details.
dotnet add package Rystem.BackgroundJob --version 9.0.21
                    
NuGet\Install-Package Rystem.BackgroundJob -Version 9.0.21
                    
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="9.0.21" />
                    
For projects that support PackageReference, copy this XML node into the project file to reference the package.
<PackageVersion Include="Rystem.BackgroundJob" Version="9.0.21" />
                    
Directory.Packages.props
<PackageReference Include="Rystem.BackgroundJob" />
                    
Project file
For projects that support Central Package Management (CPM), copy this XML node into the solution Directory.Packages.props file to version the package.
paket add Rystem.BackgroundJob --version 9.0.21
                    
#r "nuget: Rystem.BackgroundJob, 9.0.21"
                    
#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.
#addin nuget:?package=Rystem.BackgroundJob&version=9.0.21
                    
Install Rystem.BackgroundJob as a Cake Addin
#tool nuget:?package=Rystem.BackgroundJob&version=9.0.21
                    
Install Rystem.BackgroundJob as a Cake Tool

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 net9.0 is compatible.  net9.0-android was computed.  net9.0-browser was computed.  net9.0-ios was computed.  net9.0-maccatalyst was computed.  net9.0-macos was computed.  net9.0-tvos was computed.  net9.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
9.0.30 3,021 7 days ago
9.0.29 8,901 14 days ago
9.0.28 139 15 days ago
9.0.27 133 16 days ago
9.0.26 137 20 days ago
9.0.25 51,998 23 days ago
9.0.21 210 a month ago
9.0.20 19,453 a month ago
9.0.19 206 a month ago
9.0.18 206 a month ago
9.0.17 92 a month ago
9.0.16 85 a month ago
9.0.15 75,449 a month ago
9.0.14 22,488 a month ago
9.0.13 114 2 months ago
9.0.12 217,575 3 months ago
9.0.11 23,935 3 months ago
9.0.10 48 3 months ago
9.0.9 3,950 3 months ago
9.0.8 12,434 3 months ago
9.0.7 90 3 months ago
9.0.4 92,257 3 months ago
9.0.3 102 3 months ago
9.0.2 10,653 3 months ago
9.0.1 1,149 3 months ago
9.0.0 172,962 5 months ago
9.0.0-rc.1 88 5 months ago
6.2.0 219,471 6 months ago
6.1.1 121 6 months ago
6.1.0 47,891 6 months ago
6.0.24 161 7 months ago
6.0.23 140 8 months ago
6.0.21 138 9 months ago
6.0.20 145 10 months ago
6.0.19 140 10 months ago
6.0.18 123 10 months ago
6.0.17 129 10 months ago
6.0.16 132 10 months ago
6.0.15 127 10 months ago
6.0.14 158 5/24/2024
6.0.13 141 5/23/2024
6.0.12 125 5/23/2024
6.0.11 139 5/20/2024
6.0.9 144 5/20/2024
6.0.7 128 5/18/2024
6.0.6 105 5/10/2024
6.0.5 114 5/10/2024
6.0.4 153 4/3/2024
6.0.3 319 3/25/2024
6.0.2 3,187 3/11/2024
6.0.1 189 3/8/2024
6.0.0 577 11/21/2023
6.0.0-rc.6 114 10/25/2023
6.0.0-rc.5 92 10/25/2023
6.0.0-rc.4 81 10/23/2023
6.0.0-rc.3 78 10/19/2023
6.0.0-rc.2 81 10/18/2023
6.0.0-rc.1 82 10/16/2023
5.0.20 742 9/25/2023
5.0.19 1,317 9/10/2023
5.0.18 547 9/6/2023
5.0.17 530 9/6/2023
5.0.16 526 9/5/2023
5.0.15 512 9/5/2023
5.0.14 551 9/5/2023
5.0.13 667 9/1/2023
5.0.12 508 8/31/2023
5.0.11 502 8/30/2023
5.0.10 547 8/29/2023
5.0.9 532 8/24/2023
5.0.8 527 8/24/2023
5.0.7 518 8/23/2023
5.0.6 544 8/21/2023
5.0.5 533 8/21/2023
5.0.4 553 8/16/2023
5.0.3 633 8/2/2023
5.0.2 608 8/2/2023
5.0.1 665 8/1/2023
5.0.0 636 7/31/2023
4.1.26 1,000 7/20/2023
4.1.25 635 7/16/2023
4.1.24 733 6/13/2023
4.1.23 624 6/13/2023
4.1.22 602 5/30/2023
4.1.21 631 5/20/2023
4.1.20 315,826 4/19/2023
4.1.19 95,337 3/20/2023
4.1.18 718 3/20/2023
4.1.17 704 3/16/2023
4.1.16 695 3/16/2023
4.1.15 1,154 3/15/2023
4.1.14 1,821 3/9/2023
4.1.13 666 3/7/2023
4.1.12 743 2/10/2023
4.1.11 765 1/26/2023
4.1.10 772 1/22/2023
4.1.9 779 1/20/2023
4.1.8 787 1/18/2023
4.1.7 798 1/18/2023
4.1.6 780 1/17/2023
4.1.1 771 1/4/2023
4.1.0 787 12/30/2022
3.0.25 877 12/21/2022
3.0.24 885 11/18/2022
3.0.23 879 11/18/2022
3.0.22 903 11/15/2022
3.0.21 871 11/14/2022
3.0.20 897 11/13/2022
3.0.19 921 11/2/2022
3.0.18 904 11/2/2022
3.0.17 967 10/29/2022
3.0.16 958 10/29/2022
3.0.15 952 10/29/2022
2.0.6 987 9/20/2022
2.0.5 978 9/20/2022
2.0.4 892 9/20/2022
2.0.3 1,031 9/20/2022
2.0.1 1,093 9/13/2022
2.0.0 903 8/19/2022
1.1.23 1,148 7/30/2022
1.1.22 1,035 7/29/2022
1.1.21 991 7/29/2022
1.1.20 1,044 7/29/2022
1.1.19 1,068 7/27/2022
1.1.17 993 7/27/2022
1.1.15 1,015 7/25/2022
1.1.14 1,024 7/25/2022
1.1.13 978 7/22/2022
1.1.12 1,019 7/19/2022
1.1.11 1,031 7/19/2022
1.1.10 1,022 7/19/2022
1.1.9 1,037 7/19/2022
1.1.8 1,020 7/18/2022
1.1.7 1,013 7/18/2022
1.1.6 1,012 7/18/2022
1.0.4 1,041 7/17/2022
1.0.2 1,088 7/17/2022
1.0.1 922 7/12/2022
1.0.0 1,303 7/8/2022
0.10.7 1,078 7/8/2022
0.9.11 1,044 6/30/2022
0.9.10 995 6/29/2022
0.9.9 1,009 6/28/2022