Skip to content
ModularityKit.Mutator ModularityKit.Mutator Docs
  • Home
  • Core
  • Governance
  • Redis
  • API
Search Results for

    Show / Hide Table of Contents

    Class BatchMutationResult<TState>

    Represents the result of executing a batch of mutations as a single operation.

    Inheritance
    object
    BatchMutationResult<TState>
    Inherited Members
    object.Equals(object)
    object.Equals(object, object)
    object.GetHashCode()
    object.GetType()
    object.ReferenceEquals(object, object)
    object.ToString()
    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 Source

    AggregatedChanges

    Aggregated changes from all mutations.

    Declaration
    public ChangeSet AggregatedChanges { get; init; }
    Property Value
    Type Description
    ChangeSet
    | Edit this page View Source

    FailureCount

    Number of failed mutations.

    Declaration
    public int FailureCount { get; }
    Property Value
    Type Description
    int
    | Edit this page View Source

    FinalState

    Final state after applying all mutations.

    Declaration
    public TState? FinalState { get; init; }
    Property Value
    Type Description
    TState
    | Edit this page View Source

    IsSuccess

    Indicates whether all mutations in the batch succeeded.

    Declaration
    public bool IsSuccess { get; init; }
    Property Value
    Type Description
    bool
    | Edit this page View Source

    Results

    Individual results for each mutation in the batch.

    Declaration
    public IReadOnlyList<MutationResult<TState>> Results { get; init; }
    Property Value
    Type Description
    IReadOnlyList<MutationResult<TState>>
    | Edit this page View Source

    SuccessCount

    Number of successful mutations.

    Declaration
    public int SuccessCount { get; }
    Property Value
    Type Description
    int
    | Edit this page View Source

    TotalExecutionTime

    Total elapsed time for executing the batch.

    Declaration
    public TimeSpan TotalExecutionTime { get; init; }
    Property Value
    Type Description
    TimeSpan
    • Edit this page
    • View Source
    In this article
    ModularityKit.Mutator Generated from XML docs and published from main. Back to top