private void _MVC(WebContext context)
        {
            var(controller, action) = default((String, String));
            var path = context.Request.path;

            if (String.Compare(path, "/") == 0)
            {
                (controller, action) = ParserRoute.GetDefaultMVC(_routeMVC);
            }
            else if (RouteValidator.IsValid(_routeMVC, path))
            {
                (controller, action) = ParserRoute.GetMVC(_routeMVC, path);
            }
            ControllerInvoker.Invoke(controller, action, context);
        }
示例#2
0
 public void IsValidRoute()
 {
     Assert.IsTrue(_routeValidator.IsValid());
 }