Ejemplo n.º 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>();
 }
Ejemplo n.º 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>();
 }
Ejemplo n.º 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))
     };
 }
Ejemplo n.º 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))
     };
 }