public DispatcherBase(IMongoRepository mongoRepository, IGESConnection gesConnection, List <IHandler> eventHandlers) { _mongoRepository = mongoRepository; _gesConnection = gesConnection.BuildConnection(); _gesConnection.ConnectAsync(); _eventHandlers = eventHandlers; // add all handlers to the broadcast block so they receive news of events RegisterHandlers(); // gets last event processed to avoid re processing events after a shut down. GetLastEventProcessedForHandlers(); }
public DispatcherBase(IMongoRepository mongoRepository, IGESConnection gesConnection, List<IHandler> eventHandlers) { _mongoRepository = mongoRepository; _gesConnection = gesConnection.BuildConnection(); _gesConnection.ConnectAsync(); _eventHandlers = eventHandlers; // add all handlers to the broadcast block so they receive news of events RegisterHandlers(); // gets last event processed to avoid re processing events after a shut down. GetLastEventProcessedForHandlers(); }