public HtmlMinifierMvcCSharpRazorCodeGenerator(string className, string rootNamespaceName, string sourceFileName, RazorEngineHost host, IHtmlPageMinifier htmlPageMinifier, IDebugStatusReader debugStatusReader) : base(className, rootNamespaceName, sourceFileName, host) { m_HtmPagelMinifier = htmlPageMinifier; m_DebugStatusReader = debugStatusReader; }
protected BundleBase(IFileWriterFactory fileWriterFactory, IFileReaderFactory fileReaderFactory, IDebugStatusReader debugStatusReader, ICurrentDirectoryWrapper currentDirectoryWrapper, IHasher hasher) { this.fileWriterFactory = fileWriterFactory; this.fileReaderFactory = fileReaderFactory; this.debugStatusReader = debugStatusReader; this.currentDirectoryWrapper = currentDirectoryWrapper; this.hasher = hasher; }
protected BundleBase(IFileWriterFactory fileWriterFactory, IFileReaderFactory fileReaderFactory, IDebugStatusReader debugStatusReader, IDirectoryWrapper directoryWrapper, IHasher hasher, IBundleCache bundleCache) { this.fileWriterFactory = fileWriterFactory; this.fileReaderFactory = fileReaderFactory; this.debugStatusReader = debugStatusReader; this.directoryWrapper = directoryWrapper; this.hasher = hasher; bundleState = new BundleState { DebugPredicate = Configuration.Instance.DefaultDebugPredicate(), ShouldRenderOnlyIfOutputFileIsMissing = false, HashKeyName = Configuration.Instance.DefaultHashKeyName(), CacheInvalidationStrategy = Configuration.Instance.DefaultCacheInvalidationStrategy() }; this.bundleCache = bundleCache; }
static ResourceManagerRuntime() { s_VirtualPathResolverManager = new VirtualPathResolverManager(() => new HttpContextVirtualPathResolver(), () => new WindowsVirtualPathResolver()); s_CacheProvider = new SystemRuntimeCacheProvider(); s_CompressionFactory = new CompressionFactory(); s_ResourceHasher = new Md5ResourceHasher(); s_CssMinifier = new YahooCssMinifier(); s_JsMinifier = new YahooJsMinifier(); s_DebugStatusReader = new HttpContextDebugStatusReader(); s_DateTimeProvider = new DefaultDateTimeProvider(); s_HttpResponseCacher = new HttpResponseCacher(s_DateTimeProvider); s_HttpResponseCompressor = new HttpResponseCompressor(); s_RemoteFileTempFolderProvider = new WindowsTempPathRemoteFileTempFolderProvider(); s_VirtualPathProvider = new VirtualPathProvider(); s_HtmlMinifier = new SimpleHtmlMinifier(); UpdateDependentObjects(); }
public JavaScriptBundle(IDebugStatusReader debugStatusReader) : this(debugStatusReader, new FileWriterFactory(new RetryableFileOpener(), 5), new FileReaderFactory(new RetryableFileOpener(), 5), new DirectoryWrapper(), new Hasher(new RetryableFileOpener()), new BundleCache()) { }
public CSSBundleFactory WithDebuggingEnabled(bool enabled) { this.debugStatusReader = new StubDebugStatusReader(enabled); return(this); }
public CSSBundle(IDebugStatusReader debugStatusReader) : base(new FileWriterFactory(new RetryableFileOpener(), 5), new FileReaderFactory(new RetryableFileOpener(), 5), debugStatusReader, new CurrentDirectoryWrapper(), new Hasher(new RetryableFileOpener()), new BundleCache()) { }
public CSSBundle(IDebugStatusReader debugStatusReader, IFileWriterFactory fileWriterFactory, IFileReaderFactory fileReaderFactory, IDirectoryWrapper directoryWrapper, IHasher hasher, IBundleCache bundleCache) : base(fileWriterFactory, fileReaderFactory, debugStatusReader, directoryWrapper, hasher, bundleCache) { }
public JavaScriptBundle(IDebugStatusReader debugStatusReader, IFileWriterFactory fileWriterFactory, IFileReaderFactory fileReaderFactory) : base(fileWriterFactory, fileReaderFactory, debugStatusReader) { }
public JavaScriptBundle(IDebugStatusReader debugStatusReader, IFileWriterFactory fileWriterFactory, IFileReaderFactory fileReaderFactory, ICurrentDirectoryWrapper currentDirectoryWrapper, IHasher hasher, IBundleCache bundleCache) : base(fileWriterFactory, fileReaderFactory, debugStatusReader, currentDirectoryWrapper, hasher, bundleCache) { }
public JavaScriptBundle(IDebugStatusReader debugStatusReader, IFileWriterFactory fileWriterFactory, IFileReaderFactory fileReaderFactory, IDirectoryWrapper directoryWrapper, IHasher hasher, IContentCache bundleCache, IContentCache rawContentCache) : base(fileWriterFactory, fileReaderFactory, debugStatusReader, directoryWrapper, hasher, bundleCache, rawContentCache) { }
public CSSBundleFactory WithDebuggingEnabled(bool enabled) { this.debugStatusReader = new StubDebugStatusReader(enabled); return this; }
protected BundleBase(IFileWriterFactory fileWriterFactory, IFileReaderFactory fileReaderFactory, IDebugStatusReader debugStatusReader) { this.fileWriterFactory = fileWriterFactory; this.fileReaderFactory = fileReaderFactory; this.debugStatusReader = debugStatusReader; }
protected BundleBase(IFileWriterFactory fileWriterFactory, IFileReaderFactory fileReaderFactory, IDebugStatusReader debugStatusReader, ICurrentDirectoryWrapper currentDirectoryWrapper, IHasher hasher, IBundleCache bundleCache) { this.fileWriterFactory = fileWriterFactory; this.fileReaderFactory = fileReaderFactory; this.debugStatusReader = debugStatusReader; this.currentDirectoryWrapper = currentDirectoryWrapper; this.hasher = hasher; ShouldRenderOnlyIfOutputFileIsMissing = false; HashKeyName = "r"; this.bundleCache = bundleCache; }
public void SetUp() { mockDebugStatusReader = new StubDebugStatusReader(false); mockFileWriterFactory = new StubFileWriterFactory(); cssMockFileReaderFactory = new StubFileReaderFactory(); jsMockFileReaderFactory = new StubFileReaderFactory(); cssMockFileReaderFactory.SetContents(css); jsMockFileReaderFactory.SetContents(javaScript); }
public JavaScriptBundle(IDebugStatusReader debugStatusReader, IFileWriterFactory fileWriterFactory, IFileReaderFactory fileReaderFactory, ICurrentDirectoryWrapper currentDirectoryWrapper, IHasher hasher) : base(fileWriterFactory, fileReaderFactory, debugStatusReader, currentDirectoryWrapper, hasher) { }
public JavaScriptBundle(IDebugStatusReader debugStatusReader) : base(new FileWriterFactory(new RetryableFileOpener(), 5), new FileReaderFactory(new RetryableFileOpener(), 5), debugStatusReader, new CurrentDirectoryWrapper(), new Hasher(new RetryableFileOpener())) { }
public JavaScriptBundle(IDebugStatusReader debugStatusReader) : this(debugStatusReader, new FileWriterFactory(Configuration.Instance.DefaultRetryableFileOpener(), 5), new FileReaderFactory(Configuration.Instance.DefaultRetryableFileOpener(), 5), new DirectoryWrapper(), Configuration.Instance.DefaultHasher(), new BundleCache(), new RawContentCache()) { }
public static void SetDebugStatusReader(IDebugStatusReader debugStatusReader) { s_DebugStatusReader = debugStatusReader; }
protected BundleBase(IFileWriterFactory fileWriterFactory, IFileReaderFactory fileReaderFactory, IDebugStatusReader debugStatusReader) { this.fileWriterFactory = fileWriterFactory; this.fileReaderFactory = fileReaderFactory; this.debugStatusReader = debugStatusReader; }
public CSSBundle(IDebugStatusReader debugStatusReader, IFileWriterFactory fileWriterFactory, IFileReaderFactory fileReaderFactory, ICurrentDirectoryWrapper currentDirectoryWrapper, IHasher hasher, ICacher cacher) : base(fileWriterFactory, fileReaderFactory, debugStatusReader, currentDirectoryWrapper, hasher, cacher) { }
public JavaScriptBundle(IDebugStatusReader debugStatusReader, IFileWriterFactory fileWriterFactory, IFileReaderFactory fileReaderFactory) : base(fileWriterFactory, fileReaderFactory, debugStatusReader) { }
protected BundleBase(IFileWriterFactory fileWriterFactory, IFileReaderFactory fileReaderFactory, IDebugStatusReader debugStatusReader, ICurrentDirectoryWrapper currentDirectoryWrapper, IHasher hasher) { this.fileWriterFactory = fileWriterFactory; this.fileReaderFactory = fileReaderFactory; this.debugStatusReader = debugStatusReader; this.currentDirectoryWrapper = currentDirectoryWrapper; this.hasher = hasher; }
public HtmlMinifierMvcWebPageRazorHost(IHtmlPageMinifier htmlPageMinifier, IDebugStatusReader debugStatusReader, string virtualPath, string physicalPath) : base(virtualPath, physicalPath) { m_DebugStatusReader = debugStatusReader; m_HtmlPageMinifier = htmlPageMinifier; }
public JavaScriptBundle(IDebugStatusReader debugStatusReader) : base(new FileWriterFactory(new RetryableFileOpener(), 5), new FileReaderFactory(new RetryableFileOpener(), 5), debugStatusReader, new CurrentDirectoryWrapper(), new Hasher(new RetryableFileOpener()), CacherFactory.Get <ApplicationCache>()) { }