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

View File

@@ -11,8 +11,12 @@ namespace Orchard.Azure {
throw new ArgumentException("Path can't be empty");
try {
var blob = container.GetBlockBlobReference(path);
blob.FetchAttributes();
AzureHelper.InjectHttpContext(
() =>
{
var blob = container.GetBlockBlobReference(path);
blob.FetchAttributes();
});
return true;
}
catch ( StorageClientException e ) {