Archive

Archive for May, 2012

Azure Set custom Cache Expiration on items stored in a blob

// cache time
var cacheMaxAge = (60 * 60);

 // 3600 second (1 hour) caching// file upload
blobFile.UploadByteArray(data.Data);

// setting Content-Type
blobFile.Properties.ContentType = contentType;

// setting cache for CDN
blobFile.Properties.CacheControl = "max-age=" + cacheMaxAge;

blobFile.SetProperties();

 

Advertisements
Categories: DEV Tags: ,

Mocking Azure TableStorage

Categories: DEV, Test Tags: ,

Running an EXE in an Azure WebRole

As you can Image running an Exe file on Azure is not a “best practice” bust sometimes you don’t have any other option….

In these 2 articles explain how to use the Local Storage…

http://www.codeproject.com/Articles/331425/Running-an-EXE-in-a-WebRole-on-Windows-Azure

http://stackoverflow.com/questions/5915870/running-native-code-on-azure

Categories: DEV Tags: