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