C# Class JFLibrary.Azure.CloudBlobUtility

显示文件 Open project: joelfillmore/JFLibrary

Public Methods

Method Description
EnsureGzipFiles ( CloudBlobContainer container, int cacheControlMaxAgeSeconds ) : void

Finds all js and css files in a container and creates a gzip compressed copy of the file with ".gzip" appended to the existing blob name

EnsureStaticFileHeaders ( CloudBlobContainer container, int cacheControlMaxAgeSeconds ) : void

Iterates through each blob in the specified container and adds the Cache-Control and ContentType headers

Exists ( this blob ) : bool

Private Methods

Method Description
GetContentType ( string extension ) : string

Gets the content type for the specified extension

Method Details

EnsureGzipFiles() public static method

Finds all js and css files in a container and creates a gzip compressed copy of the file with ".gzip" appended to the existing blob name
public static EnsureGzipFiles ( CloudBlobContainer container, int cacheControlMaxAgeSeconds ) : void
container Microsoft.WindowsAzure.StorageClient.CloudBlobContainer
cacheControlMaxAgeSeconds int
return void

EnsureStaticFileHeaders() public static method

Iterates through each blob in the specified container and adds the Cache-Control and ContentType headers
public static EnsureStaticFileHeaders ( CloudBlobContainer container, int cacheControlMaxAgeSeconds ) : void
container Microsoft.WindowsAzure.StorageClient.CloudBlobContainer
cacheControlMaxAgeSeconds int
return void

Exists() public static method

public static Exists ( this blob ) : bool
blob this
return bool