public CommandHandler(IEventStore eventStore, InMemoryDomainEvents domainEvents) { DomainEvents = domainEvents; EntityEventWriter = new EntityEventWriter(eventStore); CommandSubscriptionId = SubscriptionId.New(); EntityConsolidator = new EntityConsolidator <TEntity>(eventStore, domainEvents); }
public User(InMemoryDomainEvents domainEvents, UserId id, string name, string email) : base(domainEvents) { Id = id; Name = name; _email = email; TryRaiseEvent(new UserCreated() { UserId = Id, UserName = Name, UserEmail = Email, Version = Version }); }
public User(InMemoryDomainEvents domainEvents, UserId id, string name, string email) : base(domainEvents) { Id = id; Name = name; _email = email; TryRaiseEvent(new UserCreated() { UserId = Id, UserName = Name, UserEmail = Email, Version = Version }); }
public UserConsolidator(IEventStore storage, InMemoryDomainEvents domainEvents) : base(storage, domainEvents) { }
public CreateUserCommandHandler(InMemoryDomainEvents domainEvents, IEventStore eventStore) : base(eventStore, domainEvents) { }
public ChangeUserEmailCommandHandler(InMemoryDomainEvents domainEvents, IEventStore eventStore) : base(eventStore, domainEvents) { }
public EntityConsolidator(IEventStore storage, InMemoryDomainEvents domainEvents) { EntityBuilder = EntityBuilderActivator.InstantiateEntityBuilderFor <TEntity>(); DomainEvents = domainEvents; Storage = storage; }
public void WithDomainEvents(InMemoryDomainEvents domainEvents) { DomainEvents = domainEvents; }
public Entity(InMemoryDomainEvents domainEvents) : base() { WithDomainEvents(domainEvents); }
public void WithDomainEvents(InMemoryDomainEvents domainEvents) { DomainEvents = domainEvents; }
public Entity(InMemoryDomainEvents domainEvents) : base() { WithDomainEvents(domainEvents); }
internal void InstantiateDomainEventsDispatcher() { DomainEvents = new InMemoryDomainEvents(); }