public CreateMembershipCustomerRegisteredEventHandler(
     SimpleEventStoreDbContext eventStoreDbContext,
     IEventBusService eventBusService)
 {
     _eventStoreDbContext = eventStoreDbContext;
     _eventBusService     = eventBusService;
 }
예제 #2
0
 public CustomerDomainService(
     ReadModelDbContext readModelDbContext,
     SimpleEventStoreDbContext eventStoreDbContext,
     IEventBusService eventBusService)
 {
     _readModelDbContext  = readModelDbContext;
     _eventStoreDbContext = eventStoreDbContext;
     _eventBusService     = eventBusService;
 }
 public RewardsEventHandlers(
     ReadModelDbContext readModelDbContext,
     SimpleEventStoreDbContext simpleEventStoreDbContext,
     IEventBusService eventBusService)
 {
     _readModelDbContext        = readModelDbContext;
     _simpleEventStoreDbContext = simpleEventStoreDbContext;
     _eventBusService           = eventBusService;
 }
 public GetApplicationEventTypeRequestHandler(SimpleEventStoreDbContext eventStoreDbContext)
 {
     _eventStoreDbContext = eventStoreDbContext;
     _eventTypeMap        = new Dictionary <string, List <string> >()
     {
         { "customer", new List <string>()
           {
               "CustomerRegisteredEvent", "CustomerNameChangedEvent"
           } },
         { "membership", new List <string>()
           {
               "MembershipCreatedEvent", "MembershipLevelDowngradedEvent",
               "MembershipLevelUpgradedEvent", "MembershipPointsEarnedEvent"
           } }
     };
 }
예제 #5
0
 public SimpleEventStoreDatabaseHealthcheck(SimpleEventStoreDbContext context)
 {
     _context = context;
 }
 public MembershipDomainService(IEventBusService eventBusService, SimpleEventStoreDbContext simpleEventStoreDbContext)
 {
     _eventBusService           = eventBusService;
     _simpleEventStoreDbContext = simpleEventStoreDbContext;
 }
 public GetAllApplicationEventRequestHandler(SimpleEventStoreDbContext eventStoreDbContext)
 {
     _eventStoreDbContext = eventStoreDbContext;
 }