public async Task StartAsync(CancellationToken cancellationToken) { var eventStream = _rpcClient.EventStream(); _writerTask = StartWriterAsync(eventStream.RequestStream); _readerTask = StartReaderAsync(eventStream.ResponseStream); await SendStartStreamMessageAsync(eventStream.RequestStream); }
public Task StartAsync(CancellationToken token) { var eventStream = _rpcClient.EventStream(cancellationToken: token); _ = StartWriterAsync(eventStream.RequestStream); _ = StartReaderAsync(eventStream.ResponseStream); return(SendStartStreamMessageAsync(eventStream.RequestStream)); }