public GetFileSystemsAsyncCollection( BlobServiceClient client, FileSystemTraits traits, string prefix = default) { _client = client; _traits = traits; _prefix = prefix; }
/// <summary> /// The <see cref="GetFileSystemsAsync"/> operation returns an async /// sequence of blob file system in the storage account. Enumerating the /// files systems may make multiple requests to the service while fetching /// all the values. File systems are ordered lexicographically by name. /// /// For more information, see <see href="https://docs.microsoft.com/rest/api/storageservices/list-containers2"/>. /// </summary> /// <param name="traits"> /// Specifies trait options for shaping the file systems. /// </param> /// <param name="prefix"> /// Specifies a string that filters the results to return only file systems /// whose name begins with the specified <paramref name="prefix"/>. /// </param> /// <param name="cancellationToken"> /// Optional <see cref="CancellationToken"/> to propagate /// notifications that the operation should be cancelled. /// </param> /// <returns> /// An <see cref="AsyncPageable{T}"/> describing the /// file systems in the storage account. /// </returns> /// <remarks> /// A <see cref="RequestFailedException"/> will be thrown if /// a failure occurs. /// </remarks> public virtual AsyncPageable <FileSystemItem> GetFileSystemsAsync( FileSystemTraits traits = FileSystemTraits.None, string prefix = default, CancellationToken cancellationToken = default) => new GetFileSystemsAsyncCollection(_blobServiceClient, traits, prefix).ToAsyncCollection(cancellationToken);