Example #1
0
 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 });
 }
Example #3
0
 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
     });
 }
Example #4
0
 public UserConsolidator(IEventStore storage, InMemoryDomainEvents domainEvents)
     : base(storage, domainEvents)
 {
 }
Example #5
0
 public CreateUserCommandHandler(InMemoryDomainEvents domainEvents, IEventStore eventStore)
     : base(eventStore, domainEvents)
 {
 }
Example #6
0
 public ChangeUserEmailCommandHandler(InMemoryDomainEvents domainEvents, IEventStore eventStore)
     : base(eventStore, domainEvents)
 {
 }
Example #7
0
 public EntityConsolidator(IEventStore storage, InMemoryDomainEvents domainEvents)
 {
     EntityBuilder = EntityBuilderActivator.InstantiateEntityBuilderFor <TEntity>();
     DomainEvents  = domainEvents;
     Storage       = storage;
 }
Example #8
0
 public void WithDomainEvents(InMemoryDomainEvents domainEvents)
 {
     DomainEvents = domainEvents;
 }
Example #9
0
 public Entity(InMemoryDomainEvents domainEvents) : base()
 {
     WithDomainEvents(domainEvents);
 }
 public void WithDomainEvents(InMemoryDomainEvents domainEvents)
 {
     DomainEvents = domainEvents;
 }
 public Entity(InMemoryDomainEvents domainEvents)
     : base()
 {
     WithDomainEvents(domainEvents);
 }
Example #12
0
 internal void InstantiateDomainEventsDispatcher()
 {
     DomainEvents = new InMemoryDomainEvents();
 }