Search Results for

    Show / Hide Table of Contents

    Interface IAggregateRoot

    Marks an entity as an aggregate root that can collect domain events.

    Namespace: Chapar.Core.Abstractions
    Assembly: Chapar.Core.dll
    Syntax
    public interface IAggregateRoot

    Properties

    | Edit this page View Source

    DomainEvents

    Gets the domain events that have been raised but not yet dispatched.

    Declaration
    IReadOnlyCollection<IDomainEvent> DomainEvents { get; }
    Property Value
    Type Description
    IReadOnlyCollection<IDomainEvent>

    Methods

    | Edit this page View Source

    AddDomainEvent(IDomainEvent)

    Adds a domain event to the aggregate's internal collection.

    Declaration
    void AddDomainEvent(IDomainEvent domainEvent)
    Parameters
    Type Name Description
    IDomainEvent domainEvent
    | Edit this page View Source

    ClearDomainEvents()

    Clears all domain events, usually after they have been dispatched.

    Declaration
    void ClearDomainEvents()
    • Edit this page
    • View Source
    In this article
    Back to top Copyright © 2026