Class DomainEvent<TEntity>
An event that generates inside the domain (model).
Inherited Members
Namespace: Silverback.Domain
Assembly: Silverback.Core.Model.dll
Syntax
public abstract class DomainEvent<TEntity> : IDomainEvent<TEntity>, IDomainEvent, IMessageWithSource, IEvent, IMessage where TEntity : class
Type Parameters
Name | Description |
---|---|
TEntity | The type of the related domain entity. |
Properties
| Improve this doc View sourceSource
Gets the reference to the domain entity that generated this event.
Declaration
public TEntity? Source { get; set; }
Property Value
Type | Description |
---|---|
TEntity |