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 FileSystemClientWrapper(FileSystem.FileSystemClient client) { _client = client ?? throw new ArgumentNullException(nameof(client)); }
public static AsyncServerStreamingCall <FileSystemEntry> ListFiles( this FileSystem.FileSystemClient client, CancellationToken cancellationToken = default) { return(client.ListFiles(new Empty(), Metadata.Empty, null, cancellationToken)); }