Class MutationHistoryEntry
Represents a single mutation event in the history of a state object.
Inherited Members
Namespace: ModularityKit.Mutator.Abstractions.History
Assembly: ModularityKit.Mutator.dll
Syntax
public sealed class MutationHistoryEntry
Remarks
Each MutationHistoryEntry captures the details of a single mutation, including its intent, context, state changes, side effects, execution timing, and integrity hashes. This class is used by MutationHistory to store a chronological sequence of mutations.
Properties
| Edit this page View SourceChanges
Set of changes applied by this mutation.
Declaration
public ChangeSet Changes { get; init; }
Property Value
| Type | Description |
|---|---|
| ChangeSet |
Context
Contextual information about the mutation execution.
Declaration
public MutationContext Context { get; init; }
Property Value
| Type | Description |
|---|---|
| MutationContext |
ExecutionId
Unique identifier for the execution of this mutation.
Declaration
public string ExecutionId { get; init; }
Property Value
| Type | Description |
|---|---|
| string |
ExecutionTime
Duration of the mutation execution.
Declaration
public TimeSpan ExecutionTime { get; init; }
Property Value
| Type | Description |
|---|---|
| TimeSpan |
Intent
The intent behind the mutation.
Declaration
public MutationIntent Intent { get; init; }
Property Value
| Type | Description |
|---|---|
| MutationIntent |
NewStateHash
Hash of the state after the mutation (used for integrity checks).
Declaration
public string? NewStateHash { get; init; }
Property Value
| Type | Description |
|---|---|
| string |
PreviousStateHash
Hash of the state before the mutation (used for integrity checks).
Declaration
public string? PreviousStateHash { get; init; }
Property Value
| Type | Description |
|---|---|
| string |
SideEffects
Side effects produced by this mutation.
Declaration
public IReadOnlyList<SideEffect> SideEffects { get; init; }
Property Value
| Type | Description |
|---|---|
| IReadOnlyList<SideEffect> |
StateId
Identifier of the state this mutation was applied to.
Declaration
public string StateId { get; init; }
Property Value
| Type | Description |
|---|---|
| string |
Timestamp
Timestamp indicating when the mutation occurred.
Declaration
public DateTimeOffset Timestamp { get; init; }
Property Value
| Type | Description |
|---|---|
| DateTimeOffset |