由于WebApplication同时实现了 和IApplicationBuilder,IEndpointRouteBuilder因此有一种Map方法可以专门用于具有多个重载的应用程序Map(string pattern,Action<IApplicationBuilder>)和Map(string pattern, RequestDelegate requestDelegate)。它们之间有什么区别?
WebApplication
IApplicationBuilder
IEndpointRouteBuilder
Map
Map(string pattern,Action<IApplicationBuilder>)
Map(string pattern, RequestDelegate requestDelegate)
routes web-applications endpoint asp.net-core
asp.net-core ×1
endpoint ×1
routes ×1
web-applications ×1