public static IAsyncEnumerable <FileSystemEntry> ListFilesAsync( this FileSystem.FileSystemClient client, CancellationToken cancellationToken = default) { var streamingCall = client.ListFiles(new Empty(), Metadata.Empty, null, cancellationToken); return(streamingCall.ResponseStream.ReadAllAsync(cancellationToken)); }
public AsyncServerStreamingCall <FileSystemEntry> ListFiles(CancellationToken cancellationToken = default) { return(_client.ListFiles(cancellationToken)); }
public static AsyncServerStreamingCall <FileSystemEntry> ListFiles( this FileSystem.FileSystemClient client, CancellationToken cancellationToken = default) { return(client.ListFiles(new Empty(), Metadata.Empty, null, cancellationToken)); }