You cannot select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
21 lines
508 B
C#
21 lines
508 B
C#
using Ds.WMS.WebCore.appextend;
|
|
using Ds.WMS.WebCore.appstartup;
|
|
|
|
var builder = WebApplication.CreateBuilder(args).UseMyConfiguration();
|
|
|
|
// 使用动态启动类 必须集成 webcore 即可实现配置文件的介绍
|
|
builder.Services.AddEndpointsApiExplorer();
|
|
|
|
builder.Services.AddControllers(options =>
|
|
{
|
|
// options.Filters.Add<DsAppActionFilterFactory>();
|
|
options.Filters.Add(new DsAppActionFilterFactory());
|
|
});
|
|
|
|
builder.UseDynamicStartups();
|
|
|
|
var app = builder.Build();
|
|
// 中间件
|
|
app.UseMyMiddlewares();
|
|
|
|
app.Run(); |