public static IBlobContainerCollection EndListContainers(this IStorageAccount account, ServiceType serviceType, IAsyncResult ar) { if (serviceType == ServiceType.BlobService) { return(account.EndListBlobContainers(ar)); } NephosAssertionException.Fail("Invalid service type {0}.", new object[] { serviceType }); return(null); }