public ReferenceBuilder(BundleCollection allBundles, IPlaceholderTracker placeholderTracker, IBundleFactoryProvider bundleFactoryProvider, CassetteSettings settings) { this.allBundles = allBundles; this.placeholderTracker = placeholderTracker; this.bundleFactoryProvider = bundleFactoryProvider; this.settings = settings; }
public PlaceholderReplacingResponseFilter(HttpResponseBase response, IPlaceholderTracker placeholderTracker) { this.response = response; this.placeholderTracker = placeholderTracker; outputStream = response.Filter; htmlBuffer = new StringBuilder(); }
public PlaceholderReplacingResponseFilter(Stream outputStream, Encoding outputEncoding, NameValueCollection responseHeaders, IPlaceholderTracker placeholderTracker) { var gzipStream = outputStream as GZipStream; var deflateStream = outputStream as DeflateStream; // get the base stream if the outout stream is a compressor already. // this can happen, when the top application is setting a compressor as the response filter if (gzipStream != null) { this.outputStream = gzipStream.BaseStream; decompressFirst = false; } else if (deflateStream != null) { this.outputStream = deflateStream.BaseStream; decompressFirst = false; } else { this.outputStream = outputStream; decompressFirst = true; } this.outputEncoding = outputEncoding; this.responseHeaders = responseHeaders; this.placeholderTracker = placeholderTracker; this.bufferStream = new MemoryStream(); }
public PlaceholderReplacingResponseFilter(Stream outputStream, Encoding outputEncoding, NameValueCollection responseHeaders, IPlaceholderTracker placeholderTracker) { this.outputStream = outputStream; this.outputEncoding = outputEncoding; this.responseHeaders = responseHeaders; this.placeholderTracker = placeholderTracker; bufferStream = new MemoryStream(); }
public PlaceholderReplacingResponseFilter(HttpResponseBase response, IPlaceholderTracker placeholderTracker) { this.response = response; this.placeholderTracker = placeholderTracker; outputStream = response.Filter; }
public ReferenceBuilder(IBundleContainer bundleContainer, IDictionary <Type, IBundleFactory <Bundle> > bundleFactories, IPlaceholderTracker placeholderTracker, CassetteSettings settings) { this.bundleContainer = bundleContainer; this.bundleFactories = bundleFactories; this.placeholderTracker = placeholderTracker; this.settings = settings; }