Masterly.NightShift.MongoDB 1.0.0

dotnet add package Masterly.NightShift.MongoDB --version 1.0.0
                    
NuGet\Install-Package Masterly.NightShift.MongoDB -Version 1.0.0
                    
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="Masterly.NightShift.MongoDB" Version="1.0.0" />
                    
For projects that support PackageReference, copy this XML node into the project file to reference the package.
<PackageVersion Include="Masterly.NightShift.MongoDB" Version="1.0.0" />
                    
Directory.Packages.props
<PackageReference Include="Masterly.NightShift.MongoDB" />
                    
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 Masterly.NightShift.MongoDB --version 1.0.0
                    
#r "nuget: Masterly.NightShift.MongoDB, 1.0.0"
                    
#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.
#:package Masterly.NightShift.MongoDB@1.0.0
                    
#:package directive can be used in C# file-based apps starting in .NET 10 preview 4. Copy this into a .cs file before any lines of code to reference the package.
#addin nuget:?package=Masterly.NightShift.MongoDB&version=1.0.0
                    
Install as a Cake Addin
#tool nuget:?package=Masterly.NightShift.MongoDB&version=1.0.0
                    
Install as a Cake Tool

Masterly.NightShift.MongoDB

MongoDB storage for Masterly.NightShift background jobs, through the official driver. It needs a replica set or a sharded cluster (a single server can run as a one-member replica set), because its transactions span several documents. TTL indexes remove what expires.

This is a package of Masterly.NightShift, reliable background jobs for .NET.

NuGet

Install

dotnet add package Masterly.NightShift.MongoDB
  • Target frameworks: net8.0, net10.0
  • Dependencies: Masterly.NightShift.Core, MongoDB.Driver

Example

using Masterly.NightShift;

var builder = WebApplication.CreateBuilder(args);

builder.Services.AddNightShift(config => config
    .UseMongoStorage(builder.Configuration.GetConnectionString("Mongo")!, "myapp"));
builder.Services.AddNightShiftServer();

var app = builder.Build();
app.MapNightShiftDashboard();
app.Run();

The collections and their indexes are created when the storage starts. Pass an IMongoDatabase instead to share the application's client.

Documentation

Options, how the storage works and what to know before running it in production: https://a7mdfre7at.github.io/Masterly.NightShift/docs/storage/mongodb

License

MIT: this package holds only code written for Masterly.NightShift. It depends on Masterly.NightShift.Core, which is MIT AND LGPL-3.0-or-later because part of its code is derived from Hangfire.

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.  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. 
Compatible target framework(s)
Included target framework(s) (in package)
Learn more about Target Frameworks and .NET Standard.

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 0 11/16/2026