CommandExecuteAsync(TextReader, TextWriter, TextWriter, String, CancellationToken) - метод
Executes a command using specified IO streams and arguments.
Пространство имён: Tessa.Platform.CommandLineСборка: Tessa (в Tessa.dll) Версия: 4.0.4
public ValueTask ExecuteAsync(
TextReader input,
TextWriter output,
TextWriter error,
string args,
CancellationToken cancellationToken = default
)
Public Function ExecuteAsync (
input As TextReader,
output As TextWriter,
error As TextWriter,
args As String,
Optional cancellationToken As CancellationToken = Nothing
) As ValueTask
public:
ValueTask ExecuteAsync(
TextReader^ input,
TextWriter^ output,
TextWriter^ error,
String^ args,
CancellationToken cancellationToken = CancellationToken()
)
member ExecuteAsync :
input : TextReader *
output : TextWriter *
error : TextWriter *
args : string *
?cancellationToken : CancellationToken
(* Defaults:
let _cancellationToken = defaultArg cancellationToken new CancellationToken()
*)
-> ValueTask
- input TextReader
- The TextReader that represents an input stream.
- output TextWriter
- The TextWriter that represents an output stream.
- error TextWriter
- The TextWriter that represents an error stream.
- args String
- Command-line arguments to be passed to the command.
- cancellationToken CancellationToken (Optional)
- Token to cancel async task.
ValueTaskAsync task.
ArgumentNullException | input, output,
or error is null. |