using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Xml.Linq; namespace Windows.Azure.Storage { public class BlobContainerResponse : StorageResponse { public BlobContainerResponse(StorageResponse response) { base.ResponseMessage = response.ResponseMessage; base.ResponseHeaders = response.ResponseHeaders; base.ResponseCode = response.ResponseCode; base.ResponseBody = response.ResponseBody; } public List GetContainerBlobs() { var blobs = from blob in XDocument.Parse(ResponseBody).Root.Descendants("Blob") select new Blob { Name = blob.Element("Name").Value, Url = new Uri(blob.Element("Url").Value) }; return blobs.ToList(); } } }