示例#1
0
        static RouteParameters()
        {
            var defaultService = new DefaultRouteParameterService();

            service  = defaultService;
            registry = defaultService;
        }
示例#2
0
        public TokenRouteBase(IRouteHandler routeHandler, string suffix = null, bool caseSensitive = false, IRouteParameterService parameterService = null)
        {
            Ensure.NotNull(routeHandler, "routeHandler");
            CaseSensitive = caseSensitive;

            RouteHandler     = routeHandler;
            Suffix           = suffix;
            ParameterService = parameterService ?? RouteParameters.Service;
            TokenParser      = CreateTokenParser();
        }
示例#3
0
 public TreeTokenRoute(IRouteHandler routeHandler, string suffix = null, bool caseSensitive = false, IRouteParameterService parameterService = null)
     : base(routeHandler, suffix, caseSensitive, parameterService)
 {
     throw new NotImplementedException();
 }
示例#4
0
 public TokenRoute(string url, IRouteHandler routeHandler, string suffix = null, bool caseSensitive = false, IRouteParameterService parameterService = null)
     : base(routeHandler, suffix, caseSensitive, parameterService)
 {
     Ensure.NotNull(url, "url");
     Url      = url;
     Segments = BuildRoute(Url);
 }