Ejemplo n.º 1
0
 public IgniteHttpHandler(IAssetResult result, IAssetResultWriter writer)
 {
     this.result = result;
     this.writer = writer;
 }
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;
        }