public ResourceProcessor(IResourceCacher resourceCacher, IResourceReaderManager resourceReader, ICompressionFactory compressionFactory, IResourceHasher resourceHasher, IJsMinifier jsMinifier, ICssMinifier cssMinifier, IVirtualPathProvider virtualPathProvider) { m_ResourceCacher = resourceCacher; m_ResourceReader = resourceReader; m_CompressionFactory = compressionFactory; m_ResourceHasher = resourceHasher; m_JsMinifier = jsMinifier; m_CssMinifier = cssMinifier; m_VirtualPathProvider = virtualPathProvider; }
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(); }