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