Ejemplo n.º 1
0
 public CachedTagRenderer(ITagRenderer renderer, IDebugState debugState)
 {
     this.renderer = renderer;
     this.debugState = debugState;
 }
Ejemplo n.º 2
0
        public void Map(RouteCollection routes)
        {
            Contract.Requires(!this.isBuilt, "The container is already built.");

            var appPath = HostingEnvironment.ApplicationVirtualPath;
            var tagRenderer = new TagRenderer(appPath + this.routePrefix, this.javascripts, this.stylesheets, this.versionGenerator, this.debugState);
            this.tagRenderer = new CachedTagRenderer(tagRenderer, this.debugState);

            this.Writer = new CachedGZipAssetResultWriter(this.CacheHandler);

            routes.Add(new Route(this.routePrefix + "/{" + RouteValue + "}", new IgniteRouteHandler(this)));
            this.isBuilt = true;
        }