CommandExecuteAsync(TextReader, TextWriter, CancellationToken) - метод

Executes a command using specified IO streams and arguments which will be read from the input stream.

Definition

Пространство имён: Tessa.Platform.CommandLine
Сборка: Tessa (в Tessa.dll) Версия: 4.0.4
C#
public ValueTask ExecuteAsync(
	TextReader input,
	TextWriter output,
	CancellationToken cancellationToken = default
)

Параметры

input  TextReader
The TextReader that represents an input stream.
output  TextWriter
The TextWriter that represents an output stream.
cancellationToken  CancellationToken  (Optional)
Token to cancel async task.

Возвращаемое значение

ValueTask
Async task.

Исключения

ArgumentNullExceptioninput, output is null.

См. также