コード例 #1
0
 public ApplicationEventSubscription(
     IMediator mediator,
     IOptions <EventStoreOptions> eventStoreOptions,
     IEventStorePositionService eventStorePositionService,
     IStoredEventSerializer storedEventSerializer
     )
 {
     _mediator                  = mediator;
     _eventStoreOption          = eventStoreOptions;
     _storedEventSerializer     = storedEventSerializer;
     _eventStorePositionService = eventStorePositionService;
 }
コード例 #2
0
 public CatchUpSubscriptionClient(
     IServiceProvider serviceProvider,
     IEventPositionRepository eventPositionRepository,
     IUnitOfWork unitOfWork,
     IStoredEventSerializer storedEventSerializer,
     IStoredEventDispatcher eventDispatcher
     )
 {
     _serviceProvider         = serviceProvider;
     _eventPositionRepository = eventPositionRepository;
     _unitOfWork            = unitOfWork;
     _storedEventSerializer = storedEventSerializer;
     _eventDispatcher       = eventDispatcher;
 }