Table of Contents

Class RecordingTransport

Namespace
Valheim.Testing.Game
Assembly
Valheim.Testing.Game.dll
public sealed class RecordingTransport : IGameTransport, IGameThreadStatusTransport
Inheritance
object
RecordingTransport
Implements

Constructors

RecordingTransport(IGameTransport, string)

public RecordingTransport(IGameTransport inner, string file)

Parameters

inner IGameTransport
file string

Methods

Dispose()

Performs application-defined tasks associated with freeing, releasing, or resetting unmanaged resources.

public void Dispose()

Execute(string, TimeSpan)

Send one command and wait at most timeout for its reply. A completed refusal remains in the returned result.

public CommandResult Execute(string command, TimeSpan timeout)

Parameters

command string
timeout TimeSpan

Returns

CommandResult

ReadStatus()

Read the live STATUS fields without queuing a game-thread command. Missing or invalid fields are judged by the caller.

public IReadOnlyDictionary<string, string> ReadStatus()

Returns

IReadOnlyDictionary<string, string>