Esempio n. 1
0
        public void Start()
        {
            if (!Feature.IsEnabled <AutoSubscribe>())
            {
                return;
            }


            foreach (var eventType in AutoSubscriptionStrategy.GetEventsToSubscribe()
                     .Where(t => !MessageConventionExtensions.IsInSystemConventionList(t))) //never auto-subscribe system messages
            {
                Bus.Subscribe(eventType);

                Logger.DebugFormat("Auto subscribed to event {0}", eventType);
            }
        }