SessionDescriptor
Logical metadata used to shape a simulated session.
- Kind:
Class - Namespace: Repl.Testing
- Assembly:
Repl.Testing - Source: src/Repl.Testing/SessionDescriptor.cs
Signature
Section titled “Signature”public sealed record SessionDescriptor : IEquatable<SessionDescriptor>Inheritance
Section titled “Inheritance”Implements
Section titled “Implements”IEquatable<SessionDescriptor>
Properties
Section titled “Properties”AnsiSupported
Section titled “AnsiSupported”Optional ANSI support override.
public bool? AnsiSupported { get; init; }Returns
Section titled “Returns”bool?
Answers
Section titled “Answers”Optional prefilled answers applied to every command in the session.
Per-command answers passed to RunCommandAsync override session-level values
for the same prompt name.
public IReadOnlyDictionary<string, string>? Answers { get; init; }Returns
Section titled “Returns”IReadOnlyDictionary<string, string>
ConfigureRunOptions
Section titled “ConfigureRunOptions”Optional session-specific run options customization.
public Func<ReplRunOptions, ReplRunOptions>? ConfigureRunOptions { get; init; }Returns
Section titled “Returns”Func<ReplRunOptions, ReplRunOptions>
RemotePeer
Section titled “RemotePeer”Optional remote endpoint description.
public string? RemotePeer { get; init; }Returns
Section titled “Returns”TerminalCapabilities
Section titled “TerminalCapabilities”Optional capability override.
public TerminalCapabilities? TerminalCapabilities { get; init; }Returns
Section titled “Returns”TerminalCapabilities?
TerminalIdentity
Section titled “TerminalIdentity”Optional terminal identity override.
public string? TerminalIdentity { get; init; }Returns
Section titled “Returns”TransportName
Section titled “TransportName”Optional transport name override (for example websocket, telnet, signalr).
public string? TransportName { get; init; }Returns
Section titled “Returns”WindowSize
Section titled “WindowSize”Optional terminal window size override.
public (int Width, int Height)? WindowSize { get; init; }Returns
Section titled “Returns”(int Width, int Height)?