/src/SystemWebMvc/Mvc/MvcRouteHandler.cs
https://bitbucket.org/markhneedham/aspnet-mvc · C# · 17 lines · 15 code · 2 blank · 0 comment · 0 complexity · 6ad88a80c6d192c8e6a32e928c883c90 MD5 · raw file
- namespace System.Web.Mvc {
- using System.Web.Routing;
-
- [AspNetHostingPermission(System.Security.Permissions.SecurityAction.LinkDemand, Level = AspNetHostingPermissionLevel.Minimal)]
- [AspNetHostingPermission(System.Security.Permissions.SecurityAction.InheritanceDemand, Level = AspNetHostingPermissionLevel.Minimal)]
- public class MvcRouteHandler : IRouteHandler {
- protected virtual IHttpHandler GetHttpHandler(RequestContext requestContext) {
- return new MvcHandler(requestContext);
- }
-
- #region IRouteHandler Members
- IHttpHandler IRouteHandler.GetHttpHandler(RequestContext requestContext) {
- return GetHttpHandler(requestContext);
- }
- #endregion
- }
- }