static RouteParameters() { var defaultService = new DefaultRouteParameterService(); service = defaultService; registry = defaultService; }
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(); }
public TreeTokenRoute(IRouteHandler routeHandler, string suffix = null, bool caseSensitive = false, IRouteParameterService parameterService = null) : base(routeHandler, suffix, caseSensitive, parameterService) { throw new NotImplementedException(); }
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); }