增加老版本 KJDWebService
This commit is contained in:
1 parent
58abbb5b4f
commit
f84c4c1949
115 files changed
+36598
-18
No files matched your search
+13
-1
@@ -15,6 +15,11 @@ public partial class Program
|
||||
builder.Services.AddStoreHubJwt(builder.Configuration);
|
||||
// Add services to the container.
|
||||
|
||||
builder.Services.Configure<Microsoft.AspNetCore.Server.Kestrel.Core.KestrelServerOptions>(options =>
|
||||
{
|
||||
// 兼容迁移的同步控制器:允许同步读写请求/响应 IO(旧 asmx 行为)
|
||||
options.AllowSynchronousIO = true;
|
||||
});
|
||||
builder.Services.AddControllers();
|
||||
// Learn more about configuring OpenAPI at https://aka.ms/aspnet/openapi
|
||||
builder.Services.AddApiVersioning(options =>
|
||||
@@ -37,6 +42,10 @@ public partial class Program
|
||||
|
||||
var app = builder.Build();
|
||||
|
||||
// 初始化 KJD 迁移的静态提供者(MysqlUtils 连接提供 / 业务配置读取)
|
||||
StoreHub.KJDWebService.Commons.AdoProvider.SetServiceProvider(app.Services);
|
||||
StoreHub.KJDWebService.Commons.KJDConfig.SetConfiguration(app.Configuration);
|
||||
|
||||
// Configure the HTTP request pipeline.
|
||||
if (app.Environment.IsDevelopment())
|
||||
{
|
||||
@@ -59,4 +68,7 @@ public partial class Program
|
||||
|
||||
app.Run();
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
|
||||
Reference in new issue
Block a user