C# Class Affecto.Patterns.Domain.DomainEvent

Base class for implementing domain events that represent changes in a domain entity.
Inheritance: IDomainEvent
Exibir arquivo Open project: affecto/dotnet-Patterns.Domain

Protected Methods

Method Description
DomainEvent ( System.Guid entityId ) : System

Initializes a new instance of the DomainEvent class.

DomainEvent ( System.Guid entityId, long entityVersion ) : System

Initializes a new instance of the DomainEvent class.

Method Details

DomainEvent() protected method

Initializes a new instance of the DomainEvent class.
protected DomainEvent ( System.Guid entityId ) : System
entityId System.Guid Entity instance id.
return System

DomainEvent() protected method

Initializes a new instance of the DomainEvent class.
protected DomainEvent ( System.Guid entityId, long entityVersion ) : System
entityId System.Guid Entity instance id.
entityVersion long Entity instance version.
return System