mirror of
https://github.com/OrchardCMS/Orchard.git
synced 2026-02-09 09:16:41 +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");
|
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 ) {
|
||||||
|
|||||||
Reference in New Issue
Block a user