/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

  1. namespace System.Web.Mvc {
  2. using System.Web.Routing;
  3. [AspNetHostingPermission(System.Security.Permissions.SecurityAction.LinkDemand, Level = AspNetHostingPermissionLevel.Minimal)]
  4. [AspNetHostingPermission(System.Security.Permissions.SecurityAction.InheritanceDemand, Level = AspNetHostingPermissionLevel.Minimal)]
  5. public class MvcRouteHandler : IRouteHandler {
  6. protected virtual IHttpHandler GetHttpHandler(RequestContext requestContext) {
  7. return new MvcHandler(requestContext);
  8. }
  9. #region IRouteHandler Members
  10. IHttpHandler IRouteHandler.GetHttpHandler(RequestContext requestContext) {
  11. return GetHttpHandler(requestContext);
  12. }
  13. #endregion
  14. }
  15. }