public JsFileProcessor(IRetryableFileOpener retryableFileOpener, IPathProvider pathProvider, string filePath, JsCompressionType compressionType) { _retryableFileOpener = retryableFileOpener; _pathProvider = pathProvider; CompressionType = compressionType; _fileInfo = new FileInfo(new Uri(_pathProvider.MapPath(filePath)).LocalPath); _modules = new List<IJsModule>(); }
public JsFileProcessor(IRetryableFileOpener retryableFileOpener, IPathProvider pathProvider, string filePath, JsCompressionType compressionType) { _retryableFileOpener = retryableFileOpener; _pathProvider = pathProvider; CompressionType = compressionType; _fileInfo = new FileInfo(new Uri(_pathProvider.MapPath(filePath)).LocalPath); _modules = new List <IJsModule>(); }
public JsFileProcessor(Pool <Coffee.CoffeeCompiler> coffeeCompilerPool, Pool <IcedCoffee.IcedCoffeeCompiler> icedCoffeeCompilerPool, Pool <LiveScript.LiveScriptCompiler> liveScriptCompilerPool, Pool <Hogan.HoganCompiler> hoganCompilerPool, IRetryableFileOpener retryableFileOpener, IPathProvider pathProvider, string filePath, JsCompressionType compressionType, Uri jsRootUri) { _retryableFileOpener = retryableFileOpener; _pathProvider = pathProvider; _jsRootUri = jsRootUri; CompressionType = compressionType; _fileInfo = new FileInfo(new Uri(_pathProvider.MapPath(filePath)).LocalPath); _modules = new List <IJsModule>() { new CoffeeModule(coffeeCompilerPool), new IcedCoffeeModule(icedCoffeeCompilerPool), new LiveScriptModule(liveScriptCompilerPool), new HoganModule(pathProvider, hoganCompilerPool), new AnonymousAmdModule(new AmdModule(_retryableFileOpener)) }; }
public JsFileProcessor(Pool<Coffee.CoffeeCompiler> coffeeCompilerPool, Pool<IcedCoffee.IcedCoffeeCompiler> icedCoffeeCompilerPool, Pool<LiveScript.LiveScriptCompiler> liveScriptCompilerPool, Pool<Hogan.HoganCompiler> hoganCompilerPool, IRetryableFileOpener retryableFileOpener, IPathProvider pathProvider, string filePath, JsCompressionType compressionType, Uri jsRootUri) { _retryableFileOpener = retryableFileOpener; _pathProvider = pathProvider; _jsRootUri = jsRootUri; CompressionType = compressionType; _fileInfo = new FileInfo(new Uri(_pathProvider.MapPath(filePath)).LocalPath); _modules = new List<IJsModule>() { new CoffeeModule(coffeeCompilerPool), new IcedCoffeeModule(icedCoffeeCompilerPool), new LiveScriptModule(liveScriptCompilerPool), new HoganModule(pathProvider, hoganCompilerPool), new AnonymousAmdModule(new AmdModule(_retryableFileOpener)) }; }