Exemple #1
0
 public HubJavaScriptMinifier(IResourceCompressor resourceCompressor)
 {
     if (resourceCompressor == null)
     {
         throw new ArgumentNullException("resourceCompressor");
     }
     this.resourceCompressor = resourceCompressor;
 }
        public JavaScriptHelper(HttpContextBase context, IResourceCompressor compressor)
        {
            Ensure.That(() => context).IsNotNull();
            Ensure.That(() => compressor).IsNotNull();

            this.context = context;
            this.compressor = compressor;
        }
 public HubJavaScriptMinifier(IResourceCompressor resourceCompressor)
 {
     if (resourceCompressor == null)
     {
         throw new ArgumentNullException("resourceCompressor");
     }
     this.resourceCompressor = resourceCompressor;
 }
Exemple #4
0
 public JavaScriptHelper(HttpContextBase context, IResourceCompressor compressor)
 {
     if (context == null)
     {
         throw new ArgumentNullException("context");
     }
     if (compressor == null)
     {
         throw new ArgumentNullException("compressor");
     }
     this.context    = context;
     this.compressor = compressor;
 }
Exemple #5
0
 public JavaScriptHelper(HttpContextBase context, IResourceCompressor compressor)
 {
     if (context == null)
     {
         throw new ArgumentNullException("context");
     }
     if (compressor == null)
     {
         throw new ArgumentNullException("compressor");
     }
     this.context = context;
     this.compressor = compressor;
 }
        public ResourceController(IList<ResourceAssemblyLocation> locations, IResourceCompressor compressor)
        {
            Ensure.That(() => locations).IsNotNull();
            Ensure.That(() => compressor).IsNotNull();

            this.locations = locations;
            this.compressor = compressor;

            sharedLocation = new ResourceAssemblyLocation
            {
                Assembly = Assembly.GetAssembly(typeof(FileSystemHelper)),
                Namespace = Constants.SharedResourceNamespaceRoot
            };
        }
Exemple #7
0
        public ResourceController(IList <ResourceAssemblyLocation> locations, IResourceCompressor compressor)
        {
            if (locations == null)
            {
                throw new ArgumentNullException("locations");
            }
            if (compressor == null)
            {
                throw new ArgumentNullException("compressor");
            }
            this.locations  = locations;
            this.compressor = compressor;

            sharedLocation = new ResourceAssemblyLocation
            {
                Assembly  = Assembly.GetAssembly(typeof(FileSystemHelper)),
                Namespace = Constants.SharedResourceNamespaceRoot
            };
        }
Exemple #8
0
        public ResourceController(IList<ResourceAssemblyLocation> locations, IResourceCompressor compressor)
        {
            if (locations == null)
            {
                throw new ArgumentNullException("locations");
            }
            if (compressor == null)
            {
                throw new ArgumentNullException("compressor");
            }
            this.locations = locations;
            this.compressor = compressor;

            sharedLocation = new ResourceAssemblyLocation
            {
                Assembly = Assembly.GetAssembly(typeof (FileSystemHelper)),
                Namespace = Constants.SharedResourceNamespaceRoot
            };
        }
        public HubJavaScriptMinifier(IResourceCompressor resourceCompressor)
        {
            Ensure.That(() => resourceCompressor).IsNotNull();

            this.resourceCompressor = resourceCompressor;
        }
Exemple #10
0
 public WebResourceLocator(HttpContext context, IResourceCompressor compressor)
 {
     this.context = context;
     this.compressor = compressor;
     resolver = FileNameResolver.GetResolver();
 }