/// <summary> /// Initializes a new instance of the <see cref="DomainEventEnvelope" /> class. /// </summary> /// <param name="aggregateId">The aggregate identifier.</param> /// <param name="sequence">The sequence.</param> /// <param name="aggregateVersion">The aggregate version.</param> /// <param name="domainEvent">The domain event.</param> public DomainEventEnvelope(Guid aggregateId, int sequence, int aggregateVersion, object domainEvent) : this(aggregateId, domainEvent) { EventId = GuidFactory.NewGuidComb(); Sequence = sequence; AggregateVersion = aggregateVersion; }
public Account(string businessName, int accountNumber, Guid?newAccountId) : this() { var accountId = newAccountId ?? GuidFactory.NewGuidComb(); ApplyChange(new AccountCreated(accountId, businessName, accountNumber)); AddSystemTag("Transportation", true, false); AddSystemTag("Sick Leave", false, true); AddSystemTag("Training", true, true); }
/// <summary> /// Initializes a new instance of the <see cref="EfAggregateMemento" /> class. /// </summary> protected EfAggregateMemento() { SnapshotId = GuidFactory.NewGuidComb(); }