11 2020 档案

摘要:1:定义用来实现的接口 public interface IComputerBuilder { void createCpu(); void createDisplayScrenn(); void createMemory(); } } 2:实现接口 public class LowComputer 阅读全文
posted @ 2020-11-09 14:20 MrJohnson 阅读(87) 评论(0) 推荐(0)
摘要:app.Map("/second", _app => { _app.Use(async (context,next)=>{ await context.Response.WriteAsync("second middleware\r\n"); await next.Invoke(); }); }); 阅读全文
posted @ 2020-11-04 21:55 MrJohnson 阅读(1552) 评论(0) 推荐(1)
摘要:app.Use(async (context,next) => { await context.Response.WriteAsync("first middleware"); await next.Invoke(); }); 阅读全文
posted @ 2020-11-04 21:43 MrJohnson 阅读(326) 评论(0) 推荐(0)