Class CommandExecutionRecord
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
CommandName
Gets or sets the display name of the command that was executed.
public string CommandName { get; set; }
Property Value
ExecutedAt
Gets or sets the date and time when the command was executed.
public DateTime ExecutedAt { get; set; }
Property Value
ExecutedBy
Gets or sets the identifier of the user or system that executed the command.
public string ExecutedBy { get; set; }
Property Value
ExecutionTime
Gets or sets the time taken to execute the command, if available.
public TimeSpan? ExecutionTime { get; set; }
Property Value
Message
Gets or sets a message describing the outcome of the command execution.
public string Message { get; set; }
Property Value
Success
Gets or sets a value indicating whether the command completed successfully.
public bool Success { get; set; }
Property Value
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.