MVC在哪里进行URL /路由模式匹配?

时间:2022-02-08 15:11:32

Does anyone know the class(s) and method(s) within the Microsoft MVC framwork (any version, 3,4,5 etc) that actually does the pattern matching exercise on the URL to establish which route to use?

有没有人知道Microsoft MVC框架(任何版本,3,4,5等)中的类和方法实际上对URL进行模式匹配练习以确定使用哪条路由?

I'm interested to look at the actual mechanics of URL parsing but can't find the code using ILSpy.

我有兴趣看看URL解析的实际机制,但无法使用ILSpy找到代码。

1 个解决方案

#1


0  

Take a look under System.Web.Mvc.Routing. Specifically, RouteBuilder may contain what you're looking for.

看一下System.Web.Mvc.Routing。具体来说,RouteBuilder可能包含您正在寻找的内容。

Here's the source.

这是来源。

#1


0  

Take a look under System.Web.Mvc.Routing. Specifically, RouteBuilder may contain what you're looking for.

看一下System.Web.Mvc.Routing。具体来说,RouteBuilder可能包含您正在寻找的内容。

Here's the source.

这是来源。