Class ProfileFileState
A profile file as the runner sees it: whether it exists, its length, SHA256 and last write time.
public sealed record ProfileFileState
- Inheritance
-
objectProfileFileState
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
PathstringExistsboolLengthlongSha256stringLastWriteUtcDateTime?
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
pathstring
Returns
ToString()
Returns a string that represents the current object.
public override string ToString()
Returns
- string
A string that represents the current object.