Class ProtoResourceSnapshot

Namespace
ProtoTest.Core
Assembly
ProtoTest.Core.dll

An immutable view of one resource owned by a test.

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

Constructors

ProtoResourceSnapshot(string, string, string, ProtoResourceState, TimeSpan?, string?)

An immutable view of one resource owned by a test.

public ProtoResourceSnapshot(string Id, string Kind, string Description, ProtoResourceState State, TimeSpan? ReleaseDuration, string? Error)

Parameters

Id string
Kind string
Description string
State ProtoResourceState
ReleaseDuration TimeSpan?
Error string

Properties

Description

public string Description { get; init; }

Property Value

string

Error

public string? Error { get; init; }

Property Value

string

Id

public string Id { get; init; }

Property Value

string

Kind

public string Kind { get; init; }

Property Value

string

ReleaseDuration

public TimeSpan? ReleaseDuration { get; init; }

Property Value

TimeSpan?

State

public ProtoResourceState State { get; init; }

Property Value

ProtoResourceState