Stdin Type
A source for a child process's standard input, attached with `Command.Stdin`. When set, the child's stdin is a pipe fed from this source; the pipe is closed (EOF) once the source is exhausted — unless `Command.KeepStdinOpen` is also set, in which case the pipe is left open after the source is drained so the caller can keep writing to it interactively via `RunningProcess.TakeStdin` (which becomes available once the source feed has finished, so the source and the interactive writer never write the pipe at the same time).
Static members
| Static member |
Description
|
|
No input — the child sees end-of-file immediately.
|
|
Lines (each written followed by `\n`) produced asynchronously. `lines` must not be null (`ArgumentNullException`).
|
|
Raw bytes. `bytes` must not be null (`ArgumentNullException`). A defensive copy is taken at this boundary — the built `Command`/`Stdin` never aliases the caller's array, so mutating it afterward (including between retries) has no effect on what is written to the child.
|
|
The contents of a file, streamed to the child. `path` must not be null (`ArgumentNullException`).
|
|
Lines (each written followed by `\n`) produced eagerly from a sequence. `lines` must not be null (`ArgumentNullException`).
|
|
|
|
Text encoded with the command's `StdinEncoding` (UTF-8 by default). `text` must not be null (`ArgumentNullException` — a C# caller that forgets a null check would otherwise fail obscurely inside the background feeder rather than at the API boundary).
|
ProcessKit API Reference