예제 #1
0
        protected override Task ExecuteAsync(CancellationToken stoppingToken)
        {
            _log.Debug("Starting RabbitMQ service");

            // Create listeners
            foreach (var listenerConfig in _serviceConfiguration.Listeners)
            {
                _internal.AddEventListener(listenerConfig.Queue, listenerConfig.ConsumerTag, listenerConfig.ConsumerArguments);
            }

            return(Task.CompletedTask);
        }