Class DomainEvent<TEntity>
- Namespace
- Silverback.Domain
- Assembly
- Silverback.Core.Model.dll
An event that generates inside the domain (model).
public abstract class DomainEvent<TEntity> : IDomainEvent<TEntity>, IDomainEvent, IMessageWithSource, IEvent, IMessage where TEntity : class
Type Parameters
TEntityThe type of the related domain entity.
- Inheritance
-
DomainEvent<TEntity>
- Implements
-
IDomainEvent<TEntity>
- Inherited Members
Constructors
DomainEvent()
protected DomainEvent()
Properties
Source
Gets the reference to the domain entity that generated this event.
public TEntity? Source { get; set; }
Property Value
- TEntity