Skip to content

IReplIoContext

Exposes low-level runtime I/O streams for command handlers.

public interface IReplIoContext

Gets the active error writer.

TextWriter Error { get; }

TextWriter

Gets the active input reader.

TextReader Input { get; }

TextReader

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; }

bool

Gets the active output writer.

TextWriter Output { get; }

TextWriter

Gets the current hosted session identifier, when available.

string? SessionId { get; }

string