Class EventStoreMessage<TAggregateKey>
Represents a message stored in an event store.
[DynamicallyAccessedMembers(DynamicallyAccessedMemberTypes.PublicConstructors|DynamicallyAccessedMemberTypes.PublicProperties)]
public sealed class EventStoreMessage<TAggregateKey> : IEventStoreMessage<TAggregateKey>, IEventStoreMessage where TAggregateKey : notnull
Type Parameters
TAggregateKeyThe type of the aggregate identifier.
- Inheritance
-
EventStoreMessage<TAggregateKey>
- Implements
-
IEventStoreMessage<TAggregateKey>
- Inherited Members
- Extension Methods
Properties
AggregateId
Gets the aggregate identifier.
public required TAggregateKey AggregateId { get; init; }
Property Value
- TAggregateKey
The current AggregateId value.
Attempts
Gets or sets the number of dispatch attempts.
public int Attempts { get; set; }
Property Value
DispatchedOn
Gets or sets the timestamp when the message was dispatched.
public DateTimeOffset? DispatchedOn { get; set; }
Property Value
- DateTimeOffset?
The current DispatchedOn value.
DispatcherId
Gets or sets the identifier of the dispatcher handling this message.
public string? DispatcherId { get; set; }
Property Value
- string
The current DispatcherId value.
DispatcherTimeout
Gets or sets the timeout for the dispatcher.
public DateTimeOffset? DispatcherTimeout { get; set; }
Property Value
- DateTimeOffset?
The current DispatcherTimeout value.
EventBody
Gets the serialized event body.
public required string EventBody { get; init; }
Property Value
EventId
Gets the unique identifier for the event.
public required string EventId { get; init; }
Property Value
EventMetadata
Gets the event metadata.
public required string EventMetadata { get; init; }
Property Value
- string
The current EventMetadata value.
EventType
Gets the type of the event.
public required string EventType { get; init; }
Property Value
OccurredOn
Gets the timestamp when the event occurred.
public required DateTimeOffset OccurredOn { get; init; }
Property Value
- DateTimeOffset
The current OccurredOn value.