更新Hangfire提取到 框架
This commit is contained in:
1 parent
33ef90a5cc
commit
7c29e57623
11 files changed
+151
-48
No files matched your search
@@ -14,6 +14,7 @@ public partial class Program
|
||||
// 模块服务注册阶段(等价于 builder.Services.AddStoreHub(builder.Configuration, builder.Environment),额外把配置/环境交给模块)
|
||||
builder.AddStore();
|
||||
builder.Services.AddFreeSqlDB();
|
||||
builder.Services.AddStoreHangfire(builder.Configuration);
|
||||
// 数据库 Token 认证,配置节 TokenAuth
|
||||
builder.Services.AddStoreHubTokenAuth(builder.Configuration);
|
||||
// Add services to the container.
|
||||
@@ -78,6 +79,7 @@ public partial class Program
|
||||
app.UseAuthentication();
|
||||
|
||||
app.UseAuthorization();
|
||||
app.UseStoreHangfire();
|
||||
|
||||
app.MapControllers();
|
||||
|
||||
|
||||
@@ -20,6 +20,13 @@
|
||||
"UserName": "18990991234"
|
||||
}
|
||||
},
|
||||
"Hangfire": {
|
||||
"Dashboard": {
|
||||
"User": "admin",
|
||||
"Pass": "1234560"
|
||||
},
|
||||
"ConnectionString": "Server=192.168.0.200;Port=3306;Database=goods_center;Uid=root;Pwd=123456;Allow User Variables=true"
|
||||
},
|
||||
"Plugins": {
|
||||
"Path": "Plugins"
|
||||
},
|
||||
|
||||
Reference in new issue
Block a user