Skip to content

AutomationStepRecord

Namespace: Hex1b.Automation

Assembly: Hex1b.dll

Immutable record of a completed automation step. Used by to track step history for diagnostic purposes.

csharp
public sealed record AutomationStepRecord : IEquatable<AutomationStepRecord>

Inheritance

ObjectAutomationStepRecord

Implements

Constructors

AutomationStepRecord(int, string, TimeSpan, string?, int?)

Immutable record of a completed automation step. Used by to track step history for diagnostic purposes.

Parameters:

  • Index (Int32): 1-based step number in the automation sequence.
  • Description (String): Human-readable description of what the step did (e.g., "Key(Enter)", "WaitUntilText("File")").
  • Elapsed (TimeSpan): How long this step took to execute.
  • CallerFilePath (String): Source file path where the automator method was called.
  • CallerLineNumber (Nullable<Int32>): Line number where the automator method was called.
csharp
public AutomationStepRecord(int Index, string Description, TimeSpan Elapsed, string? CallerFilePath = null, int? CallerLineNumber = null)

Properties

CallerFilePath

Source file path where the automator method was called.

Returns: String

csharp
public string? CallerFilePath { get; init; }

CallerLineNumber

Line number where the automator method was called.

Returns: Nullable<Int32>

csharp
public int? CallerLineNumber { get; init; }

Description

Human-readable description of what the step did (e.g., "Key(Enter)", "WaitUntilText("File")").

Returns: String

csharp
public string Description { get; init; }

Elapsed

How long this step took to execute.

Returns: TimeSpan

csharp
public TimeSpan Elapsed { get; init; }

Index

1-based step number in the automation sequence.

Returns: Int32

csharp
public int Index { get; init; }

Methods

ToString()

Formats this step record as a human-readable string for diagnostic output.

Returns: String

csharp
public override string ToString()

Released under the MIT License.