Exemplo n.º 1
0
 public void Consume(Created @event)
 {
     using (var session = _DocumentStore.OpenSession())
     {
         var dto = new CustomerListDto {
             AggregateRootId = @event.AggregateId, City = @event.City, Name = @event.CustomerName
         };
         session.Store(dto);
         session.SaveChanges();
     }
 }
Exemplo n.º 2
0
		public void ShowCustomerDetails(CustomerListDto dto)
		{
			_eventAggregator.Publish(new ShowCustomerDetailsEvent(dto.Id));
		}