Example #1
0
 public AzureTransform(GZipBundleConfig config)
 {
     _config = config;
 }
Example #2
0
 public AzureTransform(string container, string azureAccountName = null, string azureAccessKey = null, string cdnPath = null, string secureCdnPath = null, int?bundleCacheTTL = null, int?cachePollTime = null, bool?useCompression = null)
 {
     _config = new GZipBundleConfig("", container, azureAccountName, azureAccessKey, cdnPath, secureCdnPath, bundleCacheTTL.HasValue ? bundleCacheTTL.Value : 0, cachePollTime.HasValue ? cachePollTime.Value : 0, useCompression);
 }
Example #3
0
 /// <summary>
 /// Creates a GzipBundle of StyleSheet files using CssMinify and optional gzip compression
 /// </summary>
 /// <param name="config">Configures the bundle properties.</param>
 public CSSBundle(GZipBundleConfig config)
     : base(config, new IBundleTransform[] { new CssMinify(), new AzureTransform(config) })
 {
 }
Example #4
0
 public GZipBundle(string virtualPath, string container, string cdnPath = null, string secureCdnPath = null, bool?useCompression = null, params IBundleTransform[] transforms)
     : base(virtualPath, null, transforms)
 {
     _config = new GZipBundleConfig(virtualPath, container, cdnPath, secureCdnPath, useCompression.Value);
 }
Example #5
0
 public GZipBundle(GZipBundleConfig config, params IBundleTransform[] transforms)
     : base(config.VirtualPath, null, transforms)
 {
     _config = config;
 }