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;
 }
예제 #3
0
 public IDisposable Subscribe <TEvent>(IDistributedEventHandler <TEvent> handler) where TEvent : class
 {
     return(Subscribe(typeof(TEvent), handler));
 }
예제 #4
0
 public IDisposable Subscribe <TEvent>(IDistributedEventHandler <TEvent> handler) where TEvent : class
 {
     return(NullDisposable.Instance);
 }