修改日志框架
This commit is contained in:
1 parent
f1fa0401c2
commit
fdc9b9e36d
11 files changed
+230
-175
No files matched your search
@@ -1,5 +1,4 @@
|
||||
using Asp.Versioning;
|
||||
using MAX.Core.Logger;
|
||||
using MAX.Framework.DependencyInjection;
|
||||
using Scalar.AspNetCore;
|
||||
|
||||
@@ -10,7 +9,7 @@ public partial class Program
|
||||
var builder = WebApplication.CreateBuilder(args);
|
||||
|
||||
// IOC 注册:自动注册 ISingletonDependency / IScopedDependency / ITransientDependency,并执行所有 IStartup / IModule.AddModule
|
||||
// 模块服务注册阶段(等价于 builder.Services.AddStoreHub(builder.Configuration, builder.Environment),额外把配置/环境交给模块)
|
||||
// 模块服务注册阶段(等价于 builder.Services.AddStoreHub(builder.Configuration, builder.Environment),额外把配置/环境交给模块)
|
||||
builder.AddStore();
|
||||
builder.Services.AddFreeSqlDB();
|
||||
// JWT 验证:注册 JwtBearer 认证 + 令牌服务 + OpenAPI Bearer 安全方案(配置节 Jwt)
|
||||
@@ -37,7 +36,7 @@ public partial class Program
|
||||
|
||||
|
||||
WebApplication app = builder.Build();
|
||||
|
||||
|
||||
app.UseStore();
|
||||
// 初始化 KJD 迁移的静态提供者(MysqlUtils 连接提供 / 业务配置读取)
|
||||
//StoreHub.KJDWebService.Commons.AdoProvider.SetServiceProvider(app.Services);
|
||||
|
||||
Reference in new issue
Block a user