public List<Container> GetAllContainers() { var list = new List<Container>(); var blobClient = this.GetAccount().CreateCloudBlobClient(); var containers = blobClient.ListContainers(); foreach (var c in containers) { var container = new Blobby.Container { Name = c.Name, Uri = c.Uri.ToString() }; list.Add(container); } return list; }
public List <Container> GetAllContainers() { var list = new List <Container>(); var blobClient = this.GetAccount().CreateCloudBlobClient(); var containers = blobClient.ListContainers(); foreach (var c in containers) { var container = new Blobby.Container { Name = c.Name, Uri = c.Uri.ToString() }; list.Add(container); } return(list); }