public static ValueTask ExecuteAllAsync(
this Command command,
TextReader input,
TextWriter output,
CancellationToken cancellationToken = default
)
<ExtensionAttribute>
Public Shared Function ExecuteAllAsync (
command As Command,
input As TextReader,
output As TextWriter,
Optional cancellationToken As CancellationToken = Nothing
) As ValueTask
public:
[ExtensionAttribute]
static ValueTask ExecuteAllAsync(
Command^ command,
TextReader^ input,
TextWriter^ output,
CancellationToken cancellationToken = CancellationToken()
)
[<ExtensionAttribute>]
static member ExecuteAllAsync :
command : Command *
input : TextReader *
output : TextWriter *
?cancellationToken : CancellationToken
(* Defaults:
let _cancellationToken = defaultArg cancellationToken new CancellationToken()
*)
-> ValueTask
This method catches all exceptions of type CommandException and writes them to the standard error stream.
ArgumentNullException | command, input, or output is null. |