Table of Contents

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
object
HostLogResult

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

Outcome HostLogOutcome
Target string
Line string
Elapsed TimeSpan
LastLine string

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

HostLogOutcome

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