using Ds.WMS.WebCore.appextend; using Ds.WMS.WebCore.appfilter; using Ds.WMS.WebCore.appstartup; var builder = WebApplication.CreateBuilder(args).UseMyConfiguration(); // 添加中间件 builder.Services.AddEndpointsApiExplorer(); builder.Services.AddControllers(options => { options.Filters.Add(new DsAppActionFilterFactory()); }); builder.UseDynamicStartups(); var app = builder.Build(); // 中间件 app.UseMyMiddlewares(); app.Run();