Class BatchMutationResult<TState>
Represents the result of executing a batch of mutations as a single operation.
Inherited Members
Namespace: ModularityKit.Mutator.Abstractions.Results
Assembly: ModularityKit.Mutator.dll
Syntax
public sealed class BatchMutationResult<TState>
Type Parameters
| Name | Description |
|---|---|
| TState |
Remarks
BatchMutationResult<TState> aggregates the outcomes of multiple IMutation{TState} executions. It contains the final state, individual results, aggregated changes, and summary statistics.
Key properties:
- IsSuccess — indicates if all mutations succeeded.
- FinalState — resulting state after applying all mutations.
- Results — list of individual MutationResult<TState> entries.
- AggregatedChanges — combined ChangeSet of all mutations.
- SuccessCount / FailureCount — counts of successful and failed mutations.
- TotalExecutionTime — cumulative execution time of the batch.
Properties
| Edit this page View SourceAggregatedChanges
Aggregated changes from all mutations.
Declaration
public ChangeSet AggregatedChanges { get; init; }
Property Value
| Type | Description |
|---|---|
| ChangeSet |
FailureCount
Number of failed mutations.
Declaration
public int FailureCount { get; }
Property Value
| Type | Description |
|---|---|
| int |
FinalState
Final state after applying all mutations.
Declaration
public TState? FinalState { get; init; }
Property Value
| Type | Description |
|---|---|
| TState |
IsSuccess
Indicates whether all mutations in the batch succeeded.
Declaration
public bool IsSuccess { get; init; }
Property Value
| Type | Description |
|---|---|
| bool |
Results
Individual results for each mutation in the batch.
Declaration
public IReadOnlyList<MutationResult<TState>> Results { get; init; }
Property Value
| Type | Description |
|---|---|
| IReadOnlyList<MutationResult<TState>> |
SuccessCount
Number of successful mutations.
Declaration
public int SuccessCount { get; }
Property Value
| Type | Description |
|---|---|
| int |
TotalExecutionTime
Total elapsed time for executing the batch.
Declaration
public TimeSpan TotalExecutionTime { get; init; }
Property Value
| Type | Description |
|---|---|
| TimeSpan |