Пример #1
0
 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>();
 }
Пример #2
0
 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>();
 }
Пример #3
0
 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))
     };
 }
Пример #4
0
 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))
     };
 }