Table of Contents

Class CommandExecutionRecord

Namespace
Core.CliniCore.Commands
Assembly
Core.CliniCore.dll

Represents a record of a single command execution for history or auditing purposes.

public class CommandExecutionRecord
Inheritance
CommandExecutionRecord
Inherited Members

Properties

CommandId

Gets or sets the unique identifier of the command that was executed.

public Guid CommandId { get; set; }

Property Value

Guid

CommandName

Gets or sets the display name of the command that was executed.

public string CommandName { get; set; }

Property Value

string

ExecutedAt

Gets or sets the date and time when the command was executed.

public DateTime ExecutedAt { get; set; }

Property Value

DateTime

ExecutedBy

Gets or sets the identifier of the user or system that executed the command.

public string ExecutedBy { get; set; }

Property Value

string

ExecutionTime

Gets or sets the time taken to execute the command, if available.

public TimeSpan? ExecutionTime { get; set; }

Property Value

TimeSpan?

Message

Gets or sets a message describing the outcome of the command execution.

public string Message { get; set; }

Property Value

string

Success

Gets or sets a value indicating whether the command completed successfully.

public bool Success { get; set; }

Property Value

bool

Methods

ToString()

Returns a string that represents the current CommandExecutionRecord.

public override string ToString()

Returns

string

A formatted string containing execution time, command name, executor, and status.