/// <summary>
        /// Initializes an instance of <see cref="EventSubscriptionManager"/>
        /// </summary>
        /// <param name="subscriptions">A <see cref="IEventSubscriptions"/> that will be used to maintain subscriptions from a datasource</param>
        /// <param name="typeDiscoverer">A <see cref="ITypeDiscoverer"/> for discovering <see cref="IProcessEvents"/>s in current process</param>
        /// <param name="container">A <see cref="IContainer"/> for creating instances of objects/services</param>
        /// <param name="localizer">A <see cref="ILocalizer"/> for controlling localization while executing subscriptions</param>
        public EventSubscriptionManager(
            IEventSubscriptions subscriptions,
            ITypeDiscoverer typeDiscoverer, 
            IContainer container,
            ILocalizer localizer)
        {
            _subscriptions = subscriptions;
            _typeDiscoverer = typeDiscoverer;
            _container = container;
            _localizer = localizer;

            RefreshAndMergeSubscriptionsFromRepository();
        }
Example #2
0
        /// <summary>
        /// Initializes an instance of <see cref="EventSubscriptionManager"/>
        /// </summary>
        /// <param name="subscriptions">A <see cref="IEventSubscriptions"/> that will be used to maintain subscriptions from a datasource</param>
        /// <param name="typeDiscoverer">A <see cref="ITypeDiscoverer"/> for discovering <see cref="IProcessEvents"/>s in current process</param>
        /// <param name="container">A <see cref="IContainer"/> for creating instances of objects/services</param>
        /// <param name="localizer">A <see cref="ILocalizer"/> for controlling localization while executing subscriptions</param>
        public EventSubscriptionManager(
            IEventSubscriptions subscriptions,
            ITypeDiscoverer typeDiscoverer,
            IContainer container,
            ILocalizer localizer)
        {
            _subscriptions  = subscriptions;
            _typeDiscoverer = typeDiscoverer;
            _container      = container;
            _localizer      = localizer;

            RefreshAndMergeSubscriptionsFromRepository();
        }
Example #3
0
 public EventSubscribers(IEventSubscriptions eventSubscriptionRepository, ITaskManager taskManager)
 {
     _eventSubscriptions = eventSubscriptionRepository;
     _taskManager = taskManager;
 }
Example #4
0
 public AllEventSubscriptions(IEventSubscriptions eventSubscriptions)
 {
     _eventSubscriptions = eventSubscriptions;
 }
Example #5
0
 public EventSubscribers(IEventSubscriptions eventSubscriptionRepository, ITaskManager taskManager)
 {
     _eventSubscriptions = eventSubscriptionRepository;
     _taskManager        = taskManager;
 }