dotnet core web IApplicationBuilder 中间件学习 末蓝、 2022-05-21 10:17 97阅读 0赞 # dotnet core web IApplicationBuilder 中间件学习 # 编写一个自己的中间件的模版 public static class MyApp { public static IApplicationBuilder UserMyApp(this IApplicationBuilder app) { Func<RequestDelegate, RequestDelegate> middleware = next => { return context => { return next(context); }; }; return app.Use(middleware); } }
还没有评论,来说两句吧...