Table of Contents

Class TargetState

Namespace
Invex.Atom.Build.Model
Assembly
Invex.Atom.Build.dll

Represents the current state and execution metrics of a target during a build run.

public sealed record TargetState
Inheritance
object
TargetState

Constructors

TargetState(string)

Represents the current state and execution metrics of a target during a build run.

public TargetState(string Name)

Parameters

Name string

The name of the target this state belongs to.

Properties

Name

The name of the target this state belongs to.

public string Name { get; init; }

Property Value

string

RunDuration

Gets or sets the duration of the target's execution.

public TimeSpan? RunDuration { get; }

Property Value

TimeSpan?

Remarks

This value is null until the target has completed execution (succeeded or failed).

Status

Gets or sets the current execution status of the target.

public TargetRunState Status { get; }

Property Value

TargetRunState