mirror of
https://github.com/OrchardCMS/Orchard.git
synced 2025-10-14 19:04:51 +08:00
Another patch to correct Azure compatibility
--HG-- branch : dev
This commit is contained in:
@@ -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 ) {
|
||||
|
Reference in New Issue
Block a user