Class HostLogResult
- Namespace
- Valheim.Testing.GameSessions
- Assembly
- Valheim.Testing.GameSessions.dll
The end of a host log wait: the matching line, or the last line seen before the deadline.
public sealed record HostLogResult
- Inheritance
-
objectHostLogResult
Constructors
HostLogResult(HostLogOutcome, string, string?, TimeSpan, string?)
The end of a host log wait: the matching line, or the last line seen before the deadline.
public HostLogResult(HostLogOutcome Outcome, string Target, string? Line, TimeSpan Elapsed, string? LastLine)
Parameters
OutcomeHostLogOutcomeTargetstringLinestringElapsedTimeSpanLastLinestring
Properties
Elapsed
public TimeSpan Elapsed { get; init; }
Property Value
- TimeSpan
LastLine
public string? LastLine { get; init; }
Property Value
- string
Line
public string? Line { get; init; }
Property Value
- string
Outcome
public HostLogOutcome Outcome { get; init; }
Property Value
Target
public string Target { get; init; }
Property Value
- string
Methods
EnsureMatched()
Returns the matching line; a failure line throws WaitFailedException and expiry WaitTimeoutException.
public string EnsureMatched()
Returns
- string