CommandLineExtensionsExecuteAllAsync(Command, TextReader, TextWriter, TextWriter, CancellationToken) - метод
Continuously executes a command using specified IO streams until the input stream returns null
or a CommandCanceledException was thrown.
Пространство имён: Tessa.Platform.CommandLineСборка: Tessa (в Tessa.dll) Версия: 4.0.4
public static ValueTask ExecuteAllAsync(
this Command command,
TextReader input,
TextWriter output,
TextWriter error,
CancellationToken cancellationToken = default
)
<ExtensionAttribute>
Public Shared Function ExecuteAllAsync (
command As Command,
input As TextReader,
output As TextWriter,
error As TextWriter,
Optional cancellationToken As CancellationToken = Nothing
) As ValueTask
public:
[ExtensionAttribute]
static ValueTask ExecuteAllAsync(
Command^ command,
TextReader^ input,
TextWriter^ output,
TextWriter^ error,
CancellationToken cancellationToken = CancellationToken()
)
[<ExtensionAttribute>]
static member ExecuteAllAsync :
command : Command *
input : TextReader *
output : TextWriter *
error : TextWriter *
?cancellationToken : CancellationToken
(* Defaults:
let _cancellationToken = defaultArg cancellationToken new CancellationToken()
*)
-> ValueTask
- command Command
- The Command to execute.
- 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.
- cancellationToken CancellationToken (Optional)
- Token to cancel async task.
ValueTaskAsync task.В Visual Basic и C# этот метод можно вызывать как метод экземпляра для любого объекта типа
Command. При вызове метода для экземпляра следует опускать первый параметр. Дополнительные сведения см. в разделе
Методы расширения (Visual Basic) или
Методы расширения (Руководство по программированию в C#).
This method catches all exceptions of type CommandException and writes them
to the standard error stream.
ArgumentNullException | command, input,
output, or error is null. |