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