ReplLogContext
Immutable snapshot of the current REPL logging context.
- Kind:
Class - Namespace: Repl
- Assembly:
Repl.Logging - Source: src/Repl.Logging/ReplLogContext.cs
Signature
Section titled “Signature”public sealed record ReplLogContext : IEquatable<ReplLogContext>Inheritance
Section titled “Inheritance”Implements
Section titled “Implements”IEquatable<ReplLogContext>
Constructors
Section titled “Constructors”ReplLogContext(string?, bool, bool, bool, bool, string?, string?, string?, TextWriter, TextWriter)
Section titled “ReplLogContext(string?, bool, bool, bool, bool, string?, string?, string?, TextWriter, TextWriter)”Immutable snapshot of the current REPL logging context.
public ReplLogContext(string? SessionId, bool IsSessionActive, bool IsHostedSession, bool IsProgrammatic, bool IsProtocolPassthrough, string? TransportName, string? RemotePeer, string? TerminalIdentity, TextWriter Output, TextWriter Error)Parameters
Section titled “Parameters”SessionId(string)IsSessionActive(bool)IsHostedSession(bool)IsProgrammatic(bool)IsProtocolPassthrough(bool)TransportName(string)RemotePeer(string)TerminalIdentity(string)Output(TextWriter)Error(TextWriter)
Properties
Section titled “Properties”public TextWriter Error { get; init; }Returns
Section titled “Returns”IsHostedSession
Section titled “IsHostedSession”public bool IsHostedSession { get; init; }Returns
Section titled “Returns”IsProgrammatic
Section titled “IsProgrammatic”public bool IsProgrammatic { get; init; }Returns
Section titled “Returns”IsProtocolPassthrough
Section titled “IsProtocolPassthrough”public bool IsProtocolPassthrough { get; init; }Returns
Section titled “Returns”IsSessionActive
Section titled “IsSessionActive”public bool IsSessionActive { get; init; }Returns
Section titled “Returns”Output
Section titled “Output”public TextWriter Output { get; init; }Returns
Section titled “Returns”RemotePeer
Section titled “RemotePeer”public string? RemotePeer { get; init; }Returns
Section titled “Returns”SessionId
Section titled “SessionId”public string? SessionId { get; init; }Returns
Section titled “Returns”TerminalIdentity
Section titled “TerminalIdentity”public string? TerminalIdentity { get; init; }Returns
Section titled “Returns”TransportName
Section titled “TransportName”public string? TransportName { get; init; }