コード例 #1
0
        /// <summary>
        ///     Creates the specified current trie.
        /// </summary>
        /// <param name="requestContext"></param>
        /// <returns></returns>
        public BrickPileContext Create(RequestContext requestContext)
        {
            var context = new BrickPileContext
            {
                RequestContext = requestContext,
                Trie = this.routeResolverTrie.LoadTrie(),
                NavigationContext = this.navigationContextFactory.Create()
            };

            return context;
        }
コード例 #2
0
        /// <summary>
        ///     Creates the specified current trie.
        /// </summary>
        /// <param name="requestContext"></param>
        /// <returns></returns>
        public BrickPileContext Create(RequestContext requestContext)
        {
            var context = new BrickPileContext
            {
                RequestContext    = requestContext,
                Trie              = this.routeResolverTrie.LoadTrie(),
                NavigationContext = this.navigationContextFactory.Create()
            };

            return(context);
        }