示例#1
0
        private IEnumerable <UploadLogEntry> GetChangeLogEntries()
        {
            List <UploadLogEntry> results = new List <UploadLogEntry>();

            var container  = GetContainer();
            var logEntries = container.ListBlobs(prefix: ProductName.Trim() + "/", useFlatBlobListing: true, blobListingDetails: BlobListingDetails.None);

            foreach (var entry in logEntries)
            {
                results.Add(AzureXmlSerializerHelper.Download <UploadLogEntry>(entry.Uri));
            }
            return(results);
        }
示例#2
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);
        }