Example #1
0
        private void RegisterEvents(IQueueConsumer qConsumer)
        {
            var consumeRoutes = _eventCatalog.GetConsumeRoute();

            if (!consumeRoutes.IsApplicable)
            {
                return;
            }
            var joined = String.Join(", ", consumeRoutes.Exchanges);

            _deps.Logger.LogDebug($"Register event queue: {consumeRoutes.Queue}, exchanges: {joined}");
            qConsumer.RegisterEventConsumer(consumeRoutes.Queue, consumeRoutes.Exchanges, _eventCatalog.GetExecuter());
        }