hangfire-litedb - Hangfire.LiteDB 0.3.1
LiteDB storage implementation for Hangfire (background job system for ASP.NET applications).
PM> Install-Package Hangfire.LiteDB -Version 0.3.1 -Source https://www.myget.org/F/hangfire-litedb/api/v3/index.json
> nuget.exe install Hangfire.LiteDB -Version 0.3.1 -Source https://www.myget.org/F/hangfire-litedb/api/v3/index.json
> dotnet add package Hangfire.LiteDB --version 0.3.1 --source https://www.myget.org/F/hangfire-litedb/api/v3/index.json
source https://www.myget.org/F/hangfire-litedb/api/v3/index.json
nuget Hangfire.LiteDB ~> 0.3.1
Copy to clipboard
> choco install Hangfire.LiteDB --version 0.3.1 --source https://www.myget.org/F/hangfire-litedb/api/v2
Import-Module PowerShellGet
Register-PSRepository -Name "hangfire-litedb" -SourceLocation "https://www.myget.org/F/hangfire-litedb/api/v2"
Install-Module -Name "Hangfire.LiteDB" -RequiredVersion "0.3.1" -Repository "hangfire-litedb"
Copy to clipboard
Hangfire.LiteDB
Build Status
Platform |
Master |
---|---|
Windows | |
Linux / OS X |
Overview
LiteDB job storage for Hangfire
Usage
This is how you connect to an litedb instance
GlobalConfiguration.Configuration.UseLiteDbStorage();
To enqueue a background job you must have the following in the code somewhere at least once or the background job queue will not process
var client = new BackgroundJobServer();
\\then you can do this, which runs once
BackgroundJob.Enqueue(() => Console.WriteLine("Background Job: Hello, world!"));
Scheduled background jobs are being executed only after given amount of time.
BackgroundJob.Schedule(() => Console.WriteLine("Reliable!"), TimeSpan.FromDays(7));
Recurring jobs were never been simpler, just call the following method to perform any kind of recurring task using the CRON expressions.
RecurringJob.AddOrUpdate(() => Console.WriteLine("Transparent!"), Cron.Daily);
Continuations
Continuations allow you to define complex workflows by chaining multiple background jobs together.
var id = BackgroundJob.Enqueue(() => Console.WriteLine("Hello, "));
BackgroundJob.ContinueWith(id, () => Console.WriteLine("world!"));
License
Hangfire.LiteDB is released under the MIT License.
Known Bugs
UTC Time Zone and Local Time Zone is confusing.
0.3.1 - fix lock never released. @felixclase and @Sumo-MBryant
-
.NETFramework 4.5
- HangFire.Core (>= 1.7.6)
- LiteDB (>= 5.0.9)
- Newtonsoft.Json (>= 12.0.2)
-
.NETStandard 2.0
- HangFire.Core (>= 1.7.6)
- LiteDB (>= 5.0.9)
- Newtonsoft.Json (>= 12.0.2)
- .NETFramework 4.5: 4.5.0.0
- .NETStandard 2.0: 2.0.0.0
Ownerscodeyu |
Authorscodeyu |
Project URLhttps://github.com/codeyu/Hangfire.LiteDB |
LicenseUnknown |
TagsHangfire AspNet OWIN LiteDB Long-Running Background Fire-And-Forget Delayed Recurring Tasks Jobs Scheduler Threading Queues |
Info20 total downloads |
1 downloads for version 0.3.1 |
Download (83.86 KB) |
Found on the current feed only |
Package history
Version | Size | Last updated | Downloads | Mirrored? | |||
---|---|---|---|---|---|---|---|
0.4.1 | 83.99 KB | Sun, 03 Oct 2021 13:52:44 GMT | 3 | ||||
0.4.0 | 83.99 KB | Tue, 14 Sep 2021 08:31:10 GMT | 1 | ||||
0.3.1 | 83.86 KB | Fri, 16 Oct 2020 01:33:58 GMT | 1 | ||||
0.3.0 | 83.87 KB | Sat, 28 Dec 2019 05:58:52 GMT | 1 | ||||
0.2.1 | 82.62 KB | Fri, 01 Nov 2019 12:56:17 GMT | 2 | ||||
0.2.0 | 82.91 KB | Fri, 20 Sep 2019 13:45:26 GMT | 1 | ||||
0.1.1 | 82.91 KB | Tue, 17 Sep 2019 14:59:02 GMT | 1 | ||||
0.1.1-beta-0001 | 80.51 KB | Thu, 07 Feb 2019 01:37:49 GMT | 10 |