Masterly.NightShift.SqlServer
1.0.0
dotnet add package Masterly.NightShift.SqlServer --version 1.0.0
NuGet\Install-Package Masterly.NightShift.SqlServer -Version 1.0.0
<PackageReference Include="Masterly.NightShift.SqlServer" Version="1.0.0" />
<PackageVersion Include="Masterly.NightShift.SqlServer" Version="1.0.0" />
<PackageReference Include="Masterly.NightShift.SqlServer" />
paket add Masterly.NightShift.SqlServer --version 1.0.0
#r "nuget: Masterly.NightShift.SqlServer, 1.0.0"
#:package Masterly.NightShift.SqlServer@1.0.0
#addin nuget:?package=Masterly.NightShift.SqlServer&version=1.0.0
#tool nuget:?package=Masterly.NightShift.SqlServer&version=1.0.0
Masterly.NightShift.SqlServer
SQL Server storage for Masterly.NightShift background jobs. Jobs, their state history, queues, recurring jobs and statistics are kept in a set of tables that the storage creates and upgrades itself. Databases created by Hangfire keep working.
This is a package of Masterly.NightShift, reliable background jobs for .NET.
Install
dotnet add package Masterly.NightShift.SqlServer
- Target frameworks:
net8.0,net10.0 - Dependencies:
Masterly.NightShift.Core, Dapper, Microsoft.Data.SqlClient
Example
Add a connection string to appsettings.json:
{
"ConnectionStrings": {
"NightShift": "Server=.\\sqlexpress;Database=MyApp;Integrated Security=True;TrustServerCertificate=True;"
}
}
Then register the storage (here in an ASP.NET Core app with the Masterly.NightShift meta-package):
using Masterly.NightShift;
using Masterly.NightShift.SqlServer;
var builder = WebApplication.CreateBuilder(args);
builder.Services.AddNightShift(config => config
.UseSqlServerStorage(builder.Configuration.GetConnectionString("NightShift")!));
builder.Services.AddNightShiftServer();
var app = builder.Build();
app.MapNightShiftDashboard();
app.Run();
On the first start the storage creates its tables in the [HangFire] schema of the MyApp database. The database itself must already exist.
Documentation
Connection strings, database permissions, every SqlServerStorageOptions property and schema upgrades are covered in the full documentation: https://a7mdfre7at.github.io/Masterly.NightShift/docs/storage
License
MIT AND LGPL-3.0-or-later: code written for Masterly.NightShift is MIT, code derived from Hangfire stays under the LGPL. The package contains both license texts.
| Product | Versions 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. 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 is compatible. 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. |
-
net10.0
- Dapper (>= 2.1.89)
- Masterly.NightShift.Core (>= 1.0.0)
- Microsoft.Data.SqlClient (>= 7.1.2)
- System.Security.Cryptography.Pkcs (>= 10.0.15)
-
net8.0
- Dapper (>= 2.1.89)
- Masterly.NightShift.Core (>= 1.0.0)
- Microsoft.Data.SqlClient (>= 7.1.2)
- System.Security.Cryptography.Pkcs (>= 10.0.15)
NuGet packages (1)
Showing the top 1 NuGet packages that depend on Masterly.NightShift.SqlServer:
| Package | Downloads |
|---|---|
|
Masterly.NightShift
Background jobs that work the night shift: fire-and-forget, delayed, recurring and continuation jobs for .NET, stored in SQL Server, with a dashboard. Installs the core library, SQL Server storage and the ASP.NET Core integration. |
GitHub repositories
This package is not used by any popular GitHub repositories.
| Version | Downloads | Last Updated |
|---|---|---|
| 1.0.0 | 0 | 11/16/2026 |
Release notes for version 1.0.0: https://github.com/a7mdfre7at/Masterly.NightShift/blob/master/CHANGELOG.md