CavaleriDK.Hangfire.CockroachDB
1.0.0
dotnet add package CavaleriDK.Hangfire.CockroachDB --version 1.0.0
NuGet\Install-Package CavaleriDK.Hangfire.CockroachDB -Version 1.0.0
<PackageReference Include="CavaleriDK.Hangfire.CockroachDB" Version="1.0.0" />
<PackageVersion Include="CavaleriDK.Hangfire.CockroachDB" Version="1.0.0" />
<PackageReference Include="CavaleriDK.Hangfire.CockroachDB" />
paket add CavaleriDK.Hangfire.CockroachDB --version 1.0.0
#r "nuget: CavaleriDK.Hangfire.CockroachDB, 1.0.0"
#addin nuget:?package=CavaleriDK.Hangfire.CockroachDB&version=1.0.0
#tool nuget:?package=CavaleriDK.Hangfire.CockroachDB&version=1.0.0
Hangfire.CockroachDB
This is an plugin to the Hangfire to enable CockroachDB as a storage system. Read about hangfire here: https://github.com/HangfireIO/Hangfire#overview and here: http://hangfire.io/
Instructions
For .NET
Install Hangfire, see https://github.com/HangfireIO/Hangfire#installation
Download all files from this repository, add the Hangfire.CockroachDB.csproj to your solution. Reference it in your project, and you are ready to go by using:
app.UseHangfireServer(new BackgroundJobServerOptions(),
new PostgreSqlStorage("<connection string or its name>"));
app.UseHangfireDashboard();
For ASP.NET Core
First, NuGet package needs installation.
- Hangfire.AspNetCore
- Hangfire.CockroachDB (Uses Npgsql 8)
Historically both packages were functionally the same up until the package version 1.9.11, the only difference was the underlying Npgsql dependency version. Afterwards, the support for Npgsql v5 has been dropped and now minimum required version is 8.0.0.
In Startup.cs
ConfigureServices(IServiceCollection services) method add the following line:
services.AddHangfire(config =>
config.UseCockroachDbStorage(c =>
c.UseNpgsqlConnection(Configuration.GetConnectionString("HangfireConnection"))));
In Configure method, add these two lines:
app.UseHangfireServer();
app.UseHangfireDashboard();
And... That's it. You are ready to go.
If you encounter any issues/bugs or have idea of a feature regarding Hangfire.CockroachDB, create us an issue. Thanks!
Enabling SSL support
SSL support can be enabled for Hangfire.PostgreSql library using the following mechanism:
config.UseCockroachDbStorage(c =>
c.UseNpgsqlConnection(
Configuration.GetConnectionString("HangfireConnection"), // connection string,
connection => // connection setup - gets called after instantiating the connection and before any calls to DB are made
{
connection.ProvideClientCertificatesCallback += clientCerts =>
{
clientCerts.Add(X509Certificate.CreateFromCertFile("[CERT_FILENAME]"));
};
}
)
);
License
Copyright © 2014-2024 Frank Hommers https://github.com/hangfire-postgres/Hangfire.PostgreSql.
Collaborators: Frank Hommers (frankhommers), Vytautas Kasparavičius (vytautask), Žygimantas Arūna (azygis)
Contributors: Andrew Armstrong (Plasma), Burhan Irmikci (barhun), Zachary Sims(zsims), kgamecarter, Stafford Williams (staff0rd), briangweber, Viktor Svyatokha (ahydrax), Christopher Dresel (Dresel), Vincent Vrijburg, David Roth (davidroth) and Ivan Tiniakov (Tinyakov).
Hangfire.PostgreSql is an Open Source project licensed under the terms of the LGPLv3 license. Please see http://www.gnu.org/licenses/lgpl-3.0.html for license text or COPYING.LESSER file distributed with the source code.
This work is based on the work of Sergey Odinokov, author of Hangfire. http://hangfire.io/
Related Projects
Product | Versions Compatible and additional computed target framework versions. |
---|---|
.NET | net5.0 was computed. net5.0-windows was computed. net6.0 was computed. net6.0-android was computed. net6.0-ios was computed. net6.0-maccatalyst was computed. net6.0-macos was computed. net6.0-tvos was computed. net6.0-windows was computed. net7.0 was computed. net7.0-android was computed. net7.0-ios was computed. net7.0-maccatalyst was computed. net7.0-macos was computed. net7.0-tvos was computed. net7.0-windows was computed. net8.0 was computed. 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. net9.0 was computed. 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. net10.0 was computed. net10.0-android was computed. net10.0-browser was computed. net10.0-ios was computed. net10.0-maccatalyst was computed. net10.0-macos was computed. net10.0-tvos was computed. net10.0-windows was computed. |
.NET Core | netcoreapp2.0 was computed. netcoreapp2.1 was computed. netcoreapp2.2 was computed. netcoreapp3.0 was computed. netcoreapp3.1 was computed. |
.NET Standard | netstandard2.0 is compatible. netstandard2.1 was computed. |
.NET Framework | net461 was computed. net462 was computed. net463 was computed. net47 was computed. net471 was computed. net472 was computed. net48 was computed. net481 was computed. |
MonoAndroid | monoandroid was computed. |
MonoMac | monomac was computed. |
MonoTouch | monotouch was computed. |
Tizen | tizen40 was computed. tizen60 was computed. |
Xamarin.iOS | xamarinios was computed. |
Xamarin.Mac | xamarinmac was computed. |
Xamarin.TVOS | xamarintvos was computed. |
Xamarin.WatchOS | xamarinwatchos was computed. |
-
.NETStandard 2.0
- Dapper (>= 2.0.123)
- Hangfire.Core (>= 1.8.14)
- Microsoft.CSharp (>= 4.7.0)
- Npgsql (>= 8.0.3)
NuGet packages
This package is not used by any NuGet packages.
GitHub repositories
This package is not used by any popular GitHub repositories.
Version | Downloads | Last updated |
---|---|---|
1.0.0 | 457 | 4/8/2025 |