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
447 B
C#

using Ds.WMS.WebCore.appextend;
11 months ago
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();