public static IEnumerable <FileVersion> GetCloudVersions(BlobUri uri) { FileVersionList result = null; if (uri.Exists()) { result = AzureXmlSerializerHelper.Download <FileVersionList>(uri); } else { result = new FileVersionList(); } return(result); }
public static async Task <IEnumerable <FileVersion> > GetCloudVersionsAsync(BlobUri uri) { FileVersionList result = null; if (uri.Exists()) { result = await AzureXmlSerializerHelper.DownloadAsync <FileVersionList>(uri); } else { result = new FileVersionList(); } return(result); }