Пример #1
0
        /// <summary>
        /// 产生一个路由条目
        /// </summary>
        /// <param name="uri">uri</param>
        /// <param name="action">路由行为</param>
        /// <returns>路由条目</returns>
        private Route MakeRoute(Uri uri, RouteAction action)
        {
            var route = new Route(uri, action);

            route.SetRouter(this);
            route.SetFilterChain(filterChain);
            route.SetContainer(container);
            return(route);
        }
Пример #2
0
        /// <summary>
        /// 产生一个路由条目
        /// </summary>
        /// <param name="uri">uri</param>
        /// <param name="action">路由行为</param>
        /// <returns></returns>
        protected Route MakeRoute(Uri uri, RouteAction action)
        {
            var route = new Route(uri, action);

            route.SetRouter(this);
            route.SetScheme(schemes[uri.Scheme]);
            route.SetFilterChain(filterChain);
            route.SetContainer(container);
            return(route);
        }