Innovt Platform
Search Results for

    Show / Hide Table of Contents

    Class DomainEvent

    Represents a domain event in the system.

    Inheritance
    object
    DomainEvent
    Implements
    IDataStream
    Inherited Members
    object.Equals(object)
    object.Equals(object, object)
    object.GetHashCode()
    object.GetType()
    object.MemberwiseClone()
    object.ReferenceEquals(object, object)
    object.ToString()
    Namespace: Innovt.Domain.Core.Events
    Assembly: Innovt.Domain.Core.dll
    Syntax
    public abstract class DomainEvent : IDataStream

    Constructors

    | Edit this page View Source

    DomainEvent(string, string?)

    Initializes a new instance of the DomainEvent class with a specified name and partition. The default version here is 1.0.0

    Declaration
    protected DomainEvent(string name, string? partition)
    Parameters
    Type Name Description
    string name

    The name of the domain event.

    string partition

    The partition associated with the event.

    | Edit this page View Source

    DomainEvent(string, string, string?)

    Initializes a new instance of the DomainEvent class with a specified name, version, and partition.

    Declaration
    protected DomainEvent(string name, string version, string? partition)
    Parameters
    Type Name Description
    string name

    The name of the domain event.

    string version

    The version of the domain event.

    string partition

    The partition associated with the event.

    Properties

    | Edit this page View Source

    ApproximateArrivalTimestamp

    Gets or sets the approximate arrival timestamp of the domain event.

    Declaration
    public DateTime ApproximateArrivalTimestamp { get; set; }
    Property Value
    Type Description
    DateTime
    | Edit this page View Source

    CreatedAt

    Gets or sets the date and time when the domain event was created.

    Declaration
    public DateTimeOffset CreatedAt { get; set; }
    Property Value
    Type Description
    DateTimeOffset
    | Edit this page View Source

    EventId

    Gets or sets the event ID associated with the domain event.

    Declaration
    public string? EventId { get; set; }
    Property Value
    Type Description
    string
    | Edit this page View Source

    Name

    Gets or sets the name of the domain event.

    Declaration
    public string Name { get; set; }
    Property Value
    Type Description
    string
    | Edit this page View Source

    Partition

    Gets or sets the partition associated with the domain event.

    Declaration
    public string? Partition { get; set; }
    Property Value
    Type Description
    string
    | Edit this page View Source

    PublishedAt

    Gets or sets the date and time when the domain event was published.

    Declaration
    public DateTimeOffset? PublishedAt { get; set; }
    Property Value
    Type Description
    DateTimeOffset?
    | Edit this page View Source

    TraceId

    Gets or sets the trace ID associated with the domain event.

    Declaration
    public string? TraceId { get; set; }
    Property Value
    Type Description
    string
    | Edit this page View Source

    Version

    Gets or sets the version of the domain event.

    Declaration
    public string Version { get; set; }
    Property Value
    Type Description
    string

    Methods

    | Edit this page View Source

    Empty(string?)

    Creates an empty domain event with the specified partition.

    Declaration
    public static DomainEvent Empty(string? partition)
    Parameters
    Type Name Description
    string partition

    The partition associated with the event.

    Returns
    Type Description
    DomainEvent

    An instance of DomainEvent representing an empty domain event.

    Implements

    IDataStream

    Extension Methods

    Extensions.IsNull(object)
    Extensions.ToStringOrDefault(object)
    SimpleMapper.MapTo<T1>(object)
    • Edit this page
    • View Source
    In this article
    Back to top Generated by DocFX