Table of Contents

Class ProfileFileState

Namespace
Valheim.Testing.Game
Assembly
Valheim.Testing.Game.dll

A profile file as the runner sees it: whether it exists, its length, SHA256 and last write time.

public sealed record ProfileFileState
Inheritance
object
ProfileFileState

Constructors

ProfileFileState(string, bool, long, string?, DateTime?)

A profile file as the runner sees it: whether it exists, its length, SHA256 and last write time.

public ProfileFileState(string Path, bool Exists, long Length, string? Sha256, DateTime? LastWriteUtc)

Parameters

Path string
Exists bool
Length long
Sha256 string
LastWriteUtc DateTime?

Properties

Exists

public bool Exists { get; init; }

Property Value

bool

LastWriteUtc

public DateTime? LastWriteUtc { get; init; }

Property Value

DateTime?

Length

public long Length { get; init; }

Property Value

long

Path

public string Path { get; init; }

Property Value

string

Sha256

public string? Sha256 { get; init; }

Property Value

string

Methods

Read(string)

public static ProfileFileState Read(string path)

Parameters

path string

Returns

ProfileFileState

ToString()

Returns a string that represents the current object.

public override string ToString()

Returns

string

A string that represents the current object.