Class ProtoTraceEntity

Namespace
ProtoTest.Core
Assembly
ProtoTest.Core.dll

The current state of one thing the run composed: a client, context, resource, server or capability. Entities are state, not history: an entity appears once in the artifact with its latest state and its versions, and entries refer to it by EntityId.

public sealed record ProtoTraceEntity : IEquatable<ProtoTraceEntity>
Inheritance
ProtoTraceEntity
Implements
Inherited Members
Extension Methods

Constructors

ProtoTraceEntity(string, string, string, string?, DateTimeOffset, DateTimeOffset, IReadOnlyDictionary<string, string?>, IReadOnlyList<ProtoTraceVersion>?)

The current state of one thing the run composed: a client, context, resource, server or capability. Entities are state, not history: an entity appears once in the artifact with its latest state and its versions, and entries refer to it by EntityId.

public ProtoTraceEntity(string Id, string Kind, string Name, string? Scope, DateTimeOffset FirstSeenUtc, DateTimeOffset LastSeenUtc, IReadOnlyDictionary<string, string?> State, IReadOnlyList<ProtoTraceVersion>? Versions = null)

Parameters

Id string
Kind string
Name string
Scope string
FirstSeenUtc DateTimeOffset
LastSeenUtc DateTimeOffset
State IReadOnlyDictionary<string, string>
Versions IReadOnlyList<ProtoTraceVersion>

Properties

FirstSeenUtc

public DateTimeOffset FirstSeenUtc { get; init; }

Property Value

DateTimeOffset

Id

public string Id { get; init; }

Property Value

string

Kind

public string Kind { get; init; }

Property Value

string

LastSeenUtc

public DateTimeOffset LastSeenUtc { get; init; }

Property Value

DateTimeOffset

Name

public string Name { get; init; }

Property Value

string

Scope

public string? Scope { get; init; }

Property Value

string

State

public IReadOnlyDictionary<string, string?> State { get; init; }

Property Value

IReadOnlyDictionary<string, string>

Versions

public IReadOnlyList<ProtoTraceVersion>? Versions { get; init; }

Property Value

IReadOnlyList<ProtoTraceVersion>