CodeDesignPlus.Net.Hangfire.Abstractions 1.0.0-beta.12917

This is a prerelease version of CodeDesignPlus.Net.Hangfire.Abstractions.
There is a newer prerelease version of this package available.
See the version list below for details.
dotnet add package CodeDesignPlus.Net.Hangfire.Abstractions --version 1.0.0-beta.12917
                    
NuGet\Install-Package CodeDesignPlus.Net.Hangfire.Abstractions -Version 1.0.0-beta.12917
                    
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="CodeDesignPlus.Net.Hangfire.Abstractions" Version="1.0.0-beta.12917" />
                    
For projects that support PackageReference, copy this XML node into the project file to reference the package.
<PackageVersion Include="CodeDesignPlus.Net.Hangfire.Abstractions" Version="1.0.0-beta.12917" />
                    
Directory.Packages.props
<PackageReference Include="CodeDesignPlus.Net.Hangfire.Abstractions" />
                    
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 CodeDesignPlus.Net.Hangfire.Abstractions --version 1.0.0-beta.12917
                    
#r "nuget: CodeDesignPlus.Net.Hangfire.Abstractions, 1.0.0-beta.12917"
                    
#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 CodeDesignPlus.Net.Hangfire.Abstractions@1.0.0-beta.12917
                    
#: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=CodeDesignPlus.Net.Hangfire.Abstractions&version=1.0.0-beta.12917&prerelease
                    
Install as a Cake Addin
#tool nuget:?package=CodeDesignPlus.Net.Hangfire.Abstractions&version=1.0.0-beta.12917&prerelease
                    
Install as a Cake Tool

<br /> <p align="center"> <a href="https://github.com/codedesignplus/CodeDesignPlus.Net.Sdk/tree/main/packages/CodeDesignPlus.Net.Hangfire"> <img src="https://i.imgur.com/PwbGy0o.png" alt="Logo"> </a>

<h3 align="center">CodeDesignPlus.Net.Hangfire</h3>

<p align="center"> Wrapper de Hangfire para el ecosistema CodeDesignPlus: Redis como storage, auto-descubrimiento de jobs y dashboard opcional. <br /> <a href="https://codedesignplus.com"> <strong>Explore the docs »</strong> </a> <br /> <br /> <a href="https://github.com/codedesignplus/CodeDesignPlus.Net.Sdk/issues"> <img src="https://img.shields.io/github/issues/codedesignplus/CodeDesignPlus.Net.Sdk?color=0088ff&style=for-the-badge&logo=github" alt="issues"/> </a> <a href="https://github.com/codedesignplus/CodeDesignPlus.Net.Sdk/pulls"> <img src="https://img.shields.io/github/issues-pr/codedesignplus/CodeDesignPlus.Net.Sdk?color=0088ff&style=for-the-badge&logo=github" alt="pull requests"/> </a> </p> </p>

About The Project

CodeDesignPlus.Net.Hangfire es un paquete NuGet del SDK de CodeDesignPlus que integra Hangfire como motor de background jobs en microservicios .NET 9.

Key Features

  • Redis Storage: Usa IRedisFactory del ecosistema CodeDesignPlus para obtener la conexión Redis sin configuración adicional.
  • Auto-descubrimiento de jobs: Detecta automáticamente clases que implementan IRecurrentJob en el ensamblado del microservicio.
  • Atributo declarativo: Decora tus jobs con [RecurringJobOptions("0 6 * * *")] para definir el cron directamente en la clase.
  • Dashboard opcional: Habilita el panel de Hangfire con autenticación básica vía Dashboard.Enable = true.
  • Options Pattern: Configuración centralizada en la sección Hangfire de appsettings.json.

Getting Started

Configuración en appsettings.json

{
  "Hangfire": {
    "Enable": true,
    "Prefix": "hangfire:ms-invoicing:",
    "WorkerCount": 2,
    "Queues": ["default", "critical"],
    "Dashboard": {
      "Enable": true,
      "Username": "admin",
      "Password": "your-secure-password"
    }
  }
}

Registro en Program.cs

// Registra Hangfire con Redis y auto-descubre los jobs del ensamblado
builder.Services.AddHangfire<Program>(builder.Configuration);

// En el pipeline HTTP
app.UseHangfireDashboard<Program>(app.Configuration);

Definir un job recurrente

[RecurringJobOptions("0 6 * * *", jobId: "daily-report", timezone: "America/Bogota")]
public class DailyReportJob : IRecurrentJob
{
    public Task ExecuteAsync(IJobCancellationToken cancellationToken)
    {
        // lógica del job
        return Task.CompletedTask;
    }
}

License

Distributed under the LGPL-3.0 License. See LICENSE for more information.

Contact

CodeDesignPlus - support@codedesignplus.com

Project Link: CodeDesignPlus.Net.Sdk

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.  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. 
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 CodeDesignPlus.Net.Hangfire.Abstractions:

Package Downloads
CodeDesignPlus.Net.Hangfire

CodeDesignPlus.Net.Hangfire integra Hangfire en el ecosistema CodeDesignPlus con soporte para Redis y MongoDB como storage (configurable), auto-descubrimiento de jobs vía reflexión y atributo [RecurringJobOptions].

GitHub repositories

This package is not used by any popular GitHub repositories.

Version Downloads Last Updated
1.0.0-beta.12920 55 7/29/2026
1.0.0-beta.12919 35 7/29/2026
1.0.0-beta.12918 53 7/28/2026
1.0.0-beta.12917 61 7/27/2026
1.0.0-beta.12916 46 7/27/2026
1.0.0-beta.12914 41 7/27/2026
1.0.0-beta.12913 49 7/27/2026
1.0.0-beta.12912 239 7/15/2026
1.0.0-beta.12911 154 7/13/2026
1.0.0-beta.12910 134 7/8/2026
1.0.0-beta.12909 53 7/8/2026
1.0.0-beta.12908 84 7/6/2026
1.0.0-beta.12907 175 7/3/2026
1.0.0-beta.12906 138 7/2/2026
1.0.0-beta.12905 53 7/2/2026
1.0.0-beta.12904 70 6/30/2026
1.0.0-beta.12903 81 6/23/2026
1.0.0-beta.12900 218 6/20/2026
1.0.0-beta.12898 92 6/19/2026
1.0.0-beta.12897 80 6/19/2026
Loading failed