Beispiel #1
0
        public static IEnumerable <FileVersion> GetCloudVersions(BlobUri uri)
        {
            FileVersionList result = null;

            if (uri.Exists())
            {
                result = AzureXmlSerializerHelper.Download <FileVersionList>(uri);
            }
            else
            {
                result = new FileVersionList();
            }
            return(result);
        }
Beispiel #2
0
        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);
        }