public void SetShareProperties(CloudFileShare share, AccessCondition accessCondition, FileRequestOptions options, OperationContext operationContext)
 {
     try
     {
         Task.Run(() => share.SetPropertiesAsync(accessCondition, options, operationContext)).Wait();
     }
     catch (AggregateException e) when(e.InnerException is StorageException)
     {
         throw e.InnerException;
     }
 }
 public void SetShareProperties(CloudFileShare share, AccessCondition accessCondition, FileRequestOptions options, OperationContext operationContext)
 {
     Task.Run(() => share.SetPropertiesAsync(accessCondition, options, operationContext)).Wait();
 }