public DistributedEventService(
     IDistributedEventHandler eventHandler,
     IRepository <DistributedEventRecord> repository,
     IEventCursor eventCursor,
     IEnvironmentIdentifierProvider environmentIdentifierProvider,
     IScheduledTaskManager scheduledTaskManager,
     IClock clock)
 {
     _eventHandler = eventHandler;
     _repository   = repository;
     _eventCursor  = eventCursor;
     _environmentIdentifierProvider = environmentIdentifierProvider;
     _scheduledTaskManager          = scheduledTaskManager;
     _clock = clock;
 }
 public DistributedEventService(
     IDistributedEventHandler eventHandler,
     IRepository<DistributedEventRecord> repository,
     IEventCursor eventCursor,
     IEnvironmentIdentifierProvider environmentIdentifierProvider,
     IScheduledTaskManager scheduledTaskManager,
     IClock clock)
 {
     _eventHandler = eventHandler;
     _repository = repository;
     _eventCursor = eventCursor;
     _environmentIdentifierProvider = environmentIdentifierProvider;
     _scheduledTaskManager = scheduledTaskManager;
     _clock = clock;
 }