EaCloud.Hangfire 6.0.2.2

.NET 6.0
NuGet\Install-Package EaCloud.Hangfire -Version 6.0.2.2
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.
dotnet add package EaCloud.Hangfire --version 6.0.2.2
<PackageReference Include="EaCloud.Hangfire" Version="6.0.2.2" />
For projects that support PackageReference, copy this XML node into the project file to reference the package.
paket add EaCloud.Hangfire --version 6.0.2.2
#r "nuget: EaCloud.Hangfire, 6.0.2.2"
#r directive can be used in F# Interactive, C# scripting and .NET Interactive. Copy this into the interactive tool or source code of the script to reference the package.
// Install EaCloud.Hangfire as a Cake Addin
#addin nuget:?package=EaCloud.Hangfire&version=6.0.2.2

// Install EaCloud.Hangfire as a Cake Tool
#tool nuget:?package=EaCloud.Hangfire&version=6.0.2.2

EaCloud Hangfire 后台任务组件

说明

EaCloud Hangfire 后台任务组件,封装基于 Hangfire 后台任务的服务端实现。

用法

可按照如下配置方式使用:

  1. 通过nuget引用 EaCloud.Hangfire 程序集

Install-Package EaCloud.Hangfire 2. 在 appsettings.json 中添加如下配置节点

{
   "Hangfire": {
     "ServerName": "EaCloudHangfire", //服务器名称
     "WorkerCount": 20, //并发任务数  --超出并发数。将等待之前任务的完成  (推荐并发线程是cpu 的 5倍)
     "StorageType": "Sqlserver", //存储类型:"Sqlserver"、"PostgreSql"、"SQLite"、"MySql"、"Oracle"、"Mongo"、"Redis"、"Memory"
     //存储连接字符串:指定的数据库名必须已经存在,可以手动创建空数据库或者使用当前数据库
     "StorageConnectionString": "Data Source=127.0.0.1;Initial Catalog=EaCloudDEV.Hangfire;User ID=sa;Password=p@ssw0rd;Pooling=true;Min Pool Size=1;Max Pool Size=60;Integrated Security=false;Connect Timeout=60;Application Name=EaCloud",
     "DashboardUrl": "/hangfire", //仪表盘URL路径
     "AuthorizationType": "Basic", //授权访问类型:"Anonymous"、"Basic"
     //Hangfire基本身份验证的选项,当 AuthorizationType = "Basic" 时生效。
     "BasicOptions": {
       "SslRedirect": false, //SSL重定向
       "RequireSsl": false, //需要SSL连接才能访问Hangfire Dashboard
       "LoginCaseSensitive": false, //登录检查是否区分大小写
       //访问Hangfire仪表板的用户列表
       "Users": [
         {
           //登录名
           "UserId": "manager",
           //登录密码
           "Password": "p@ssw0rd"
         }
       ]
     },
     "Enabled": true //是否启用
   } 
}
  1. 要禁用Hangfire,可以设置Enabled: false
Product Versions
.NET net6.0 net6.0-android net6.0-ios net6.0-maccatalyst net6.0-macos net6.0-tvos net6.0-windows
Compatible target framework(s)
Additional computed target framework(s)
Learn more about Target Frameworks and .NET Standard.

NuGet packages (1)

Showing the top 1 NuGet packages that depend on EaCloud.Hangfire:

Package Downloads
EaCloud.Pack.IM

EaCloud 即时通讯模块,封装即时消息收发及消息记录管理功能。

GitHub repositories

This package is not used by any popular GitHub repositories.

Version Downloads Last updated
6.0.2.2 29 9/23/2022
6.0.2.1 76 8/14/2022
6.0.1.9 85 8/13/2022
6.0.1.8 117 6/6/2022
6.0.1.7 126 5/26/2022
6.0.1.6 158 5/11/2022
6.0.1.5 147 5/10/2022
6.0.1.4 265 4/8/2022
6.0.1.3 275 4/2/2022
6.0.1.2 230 4/2/2022
6.0.1.1 279 3/18/2022
6.0.0.9 279 3/5/2022
6.0.0.8 282 2/19/2022
6.0.0.7 254 2/15/2022
6.0.0.6 300 2/14/2022
6.0.0.5 372 1/28/2022
6.0.0.4 438 1/13/2022
6.0.0.3 449 1/12/2022
6.0.0.2 685 12/21/2021
6.0.0.1 859 12/13/2021
5.0.3.7 1,115 10/16/2021
5.0.3.6 628 10/14/2021
5.0.3.5 679 10/13/2021
5.0.3.4 782 10/8/2021
5.0.3.3 714 9/17/2021
5.0.3.2 669 9/16/2021
5.0.3.1 572 9/15/2021
5.0.2.9 630 9/15/2021
5.0.2.8 738 8/31/2021
5.0.2.7 694 8/28/2021
5.0.2.6 699 8/22/2021
5.0.2.5 684 8/13/2021
5.0.2.4 622 8/13/2021
5.0.2.3 708 7/8/2021
5.0.2.2 620 7/1/2021
5.0.2.1 749 6/16/2021
5.0.1.9 618 5/12/2021
5.0.1.8 542 5/9/2021
5.0.1.7 712 5/7/2021
5.0.1.6 720 4/17/2021
5.0.1.5 647 4/16/2021
5.0.1.4 619 4/15/2021
5.0.1.3 596 4/15/2021
5.0.1.2 668 4/12/2021
5.0.1.1 658 4/8/2021