Another patch to correct Azure compatibility

--HG--
branch : dev
This commit is contained in:
Sebastien Ros
2010-06-15 16:46:59 -07:00
parent 8096a4234e
commit 64a992cd43
@@ -11,8 +11,12 @@ namespace Orchard.Azure {
throw new ArgumentException("Path can't be empty"); throw new ArgumentException("Path can't be empty");
try { try {
AzureHelper.InjectHttpContext(
() =>
{
var blob = container.GetBlockBlobReference(path); var blob = container.GetBlockBlobReference(path);
blob.FetchAttributes(); blob.FetchAttributes();
});
return true; return true;
} }
catch ( StorageClientException e ) { catch ( StorageClientException e ) {