Exemplo n.º 1
0
 /// <summary>
 /// Initializes a new instance of the <see cref="Blob"/> class.
 /// </summary>
 /// <param name="storageEndpoint">The storage endpoint.</param>
 /// <param name="blobContainerName">Name of a blob container.</param>
 public Blob(
     StorageEndpoint storageEndpoint,
     string blobContainerName
     )
     : base(storageEndpoint)
 {
     this.BlobContainerName = blobContainerName;
 }
        /// <summary>
        /// Gets the container blobs.
        /// </summary>
        /// <returns></returns>
        public List<Blob> RetrieveContainerBlobs(StorageEndpoint blobContainerEndpoint, string blobContainerName)
        {
            var blobs
                = from blob
                    in XDocument.Parse(ResponseBody).Root.Descendants("Blob")
                  select new Blob(
                          blobContainerEndpoint,
                          blobContainerName
                          )
                  {
                      Name = blob.Element("Name").Value,
                      Url = new Uri(blob.Element("Url").Value)
                  };

            return blobs.ToList();
        }
Exemplo n.º 3
0
 /// <summary>
 /// Initializes a new instance of the <see cref="Blob"/> class.
 /// </summary>
 /// <param name="storageEndpoint">The storage endpoint.</param>
 public Blob(StorageEndpoint storageEndpoint)
     : base(storageEndpoint)
 {
 }
Exemplo n.º 4
0
 public StorageRequest(StorageEndpoint storageEndpoint)
 {
     this.storageEndpoint = storageEndpoint;
 }
Exemplo n.º 5
0
 public BlobService(StorageEndpoint storageEndpoint)
     : base(storageEndpoint)
 {
 }
Exemplo n.º 6
0
 public PageBlobs(StorageEndpoint storageEndpoint)
     : base(storageEndpoint)
 {
 }
Exemplo n.º 7
0
 public BlobContainer(StorageEndpoint storageEndpoint)
     : base(storageEndpoint)
 {
 }