public void Setup() { _categoryRepo = DependencyResolver.Container.GetInstance<ICategoryRepositoryAsync>(); _commandBus = DependencyResolver.Container.GetInstance<ICommandBus>(); _eventBus = DependencyResolver.Container.GetInstance<IEventBus>(); _userCategoryRepository = DependencyResolver.Container.GetInstance<IRepository<UserCategory>>(); _eventHandlerFactory = DependencyResolver.Container.GetInstance<IEventHandlerFactory>(); _stateHelper = DependencyResolver.Container.GetInstance<IStateHelper>(); _aggregateRepository = DependencyResolver.Container.GetInstance<IAggregateRepositoryAsync>(); _eventRepository = DependencyResolver.Container.GetInstance<IEventRepositoryAsync>(); _mementoRepository = DependencyResolver.Container.GetInstance<IMementoRepositoryAsync>(); _questionRepository = DependencyResolver.Container.GetInstance<IQuestionRepositoryAsync>(); }
/// <inheritdoc/> public virtual void Unsubscribe <TEvent>(IEventHandlerFactory factory) where TEvent : class { Unsubscribe(typeof(TEvent), factory); }
/// <inheritdoc/> public virtual IDisposable Subscribe <TEvent>(IEventHandlerFactory factory) where TEvent : class { return(Subscribe(typeof(TEvent), factory)); }
public WebRequestEventSpecification(IEventHandlerFactory eventHandlerFactory) : base(eventHandlerFactory) { }
public void Unsubscribe <TEvent> (IEventHandlerFactory factory) where TEvent : class { }
public IDisposable Subscribe <TEvent> (IEventHandlerFactory factory) where TEvent : class { return(NullDisposable.Instance); }
/// <inheritdoc/> public IDisposable Register <TEventData>(IEventHandlerFactory handlerFactory) where TEventData : IEventData { return(NullDisposable.Instance); }
public EventBus(IEventHandlerFactory eventHandlerFactory) { _eventHandlerFactory = eventHandlerFactory; }
public void Unsubscribe(Type eventType, IEventHandlerFactory factory) { _localEventBus.Unsubscribe(eventType, factory); }
public void Unsubscribe <TEvent>(IEventHandlerFactory factory) where TEvent : class { _localEventBus.Unsubscribe <TEvent>(factory); }
/// <summary> /// /// </summary> /// <param name="eventType"></param> /// <param name="factory"></param> public abstract void Unsubscribe(Type eventType, IEventHandlerFactory factory);
public override IDisposable Subscribe(Type eventType, IEventHandlerFactory factory) { //This is handled by CAP ConsumerServiceSelector throw new NotImplementedException(); }
public DomainEvents(IEventHandlerFactory factory) { EventHandlerFactory = factory; }
public Configuration EventHandlerFactoryOf(IEventHandlerFactory eventHandlerFactory) { EventHandlerFactory = eventHandlerFactory; return this; }
public EventDispatcher(IEventHandlerFactory factory) { this.factory = factory ?? throw new ArgumentNullException(nameof(factory)); }
public FactoryUnregistrar(IEventBus eventBus, Type eventType, IEventHandlerFactory factory) { _eventBus = eventBus; _eventType = eventType; _factory = factory; }
public DataReader(IEventStore eventStore, IEventHandlerFactory eventHandlerFactory) { this.eventStore = eventStore; this.eventHandlerFactory = eventHandlerFactory; }
public IDisposable Subscribe <TEvent>(IEventHandlerFactory factory) where TEvent : class { return(_localEventBus.Subscribe <TEvent>(factory)); }
public EventHandlerFactoryUnregistrar(IEventBus eventBus, Type eventType, IEventHandlerFactory factory) { _eventBus = eventBus; _eventType = eventType; _factory = factory; }
public IDisposable Subscribe(Type eventType, IEventHandlerFactory factory) { return(_localEventBus.Subscribe(eventType, factory)); }
/// <inheritdoc/> public void Unregister <TEventData>(IEventHandlerFactory factory) where TEventData : IEventData { }
/// <inheritdoc/> public IDisposable Register <TEvent>(IEventHandlerFactory factory) where TEvent : class { return(Register(typeof(TEvent), factory)); }
public IDisposable Subscribe(Type eventType, IEventHandlerFactory factory) { return(NullDisposable.Instance); }
/// <inheritdoc/> public void Unregister <TEvent>(IEventHandlerFactory factory) where TEvent : class { Unregister(typeof(TEvent), factory); }
public void Unsubscribe(Type eventType, IEventHandlerFactory factory) { }
/// <inheritdoc/> public IDisposable Register(Type eventType, IEventHandlerFactory handlerFactory) { return(NullDisposable.Instance); }
public IDisposable Register <TEventData>(IEventHandlerFactory handlerFactory) where TEventData : IEventData { return(Register(typeof(TEventData), handlerFactory)); }
/// <inheritdoc/> public void Unregister(Type eventType, IEventHandlerFactory factory) { }
public abstract IDisposable Subscribe(Type eventType, IEventHandlerFactory factory);
/// <inheritdoc/> public override void Unsubscribe(Type eventType, IEventHandlerFactory factory) { GetOrCreateHandlerFactories(eventType).Locking(factories => factories.Remove(factory)); }
/// <inheritdoc/> public void Unregister <TEventData>(IEventHandlerFactory factory) where TEventData : IEventData { Unregister(typeof(TEventData), factory); }
/// <inheritdoc/> public void Unregister(Type eventType, IEventHandlerFactory factory) { GetOrCreateHandlerFactories(eventType).Locking(factories => factories.Remove(factory)); }
/// <summary> /// Initializes a new instance of the <see cref="EventMessageTrigger"/> class. /// </summary> /// <param name="eventHandlerFactory">The event handler factory.</param> public EventMessageTrigger(IEventHandlerFactory eventHandlerFactory) { _eventHandlerFactory = eventHandlerFactory; }
public EventDispatcher(IEventHandlerFactory factory) { this.factory = factory; }