IReplIoContext
Exposes low-level runtime I/O streams for command handlers.
- Kind:
Interface - Namespace: Repl
- Assembly:
Repl.Core - Source: src/Repl.Core/IReplIoContext.cs
Signature
Section titled “Signature”public interface IReplIoContextProperties
Section titled “Properties”Gets the active error writer.
TextWriter Error { get; }Returns
Section titled “Returns”Gets the active input reader.
TextReader Input { get; }Returns
Section titled “Returns”IsHostedSession
Section titled “IsHostedSession”Gets a value indicating whether execution is currently running in a real hosted transport session. This is false for local CLI execution, including protocol passthrough scopes.
bool IsHostedSession { get; }Returns
Section titled “Returns”Output
Section titled “Output”Gets the active output writer.
TextWriter Output { get; }Returns
Section titled “Returns”SessionId
Section titled “SessionId”Gets the current hosted session identifier, when available.
string? SessionId { get; }