Method RunAsync
RunAsync(CancellationToken)
Reads messages until standard input closes or the token is cancelled.
public Task RunAsync(CancellationToken cancellationToken = default)
Parameters
cancellationTokenCancellationTokenA token to observe while running.
Returns
RunAsync(TextReader, TextWriter, CancellationToken)
Reads messages from the supplied streams until the reader is exhausted or the token is cancelled.
public Task RunAsync(TextReader reader, TextWriter writer, CancellationToken cancellationToken = default)
Parameters
readerTextReaderThe message source.
writerTextWriterThe reply sink.
cancellationTokenCancellationTokenA token to observe while running.