public RabbitMqMessageSpecificTopicListeningAgent(RabbitMqEndpoint endpoint, HandlerGraph handlers, TransportUri transportUri, ITransportLogger logger, JasperOptions settings) { Address = endpoint.Uri.ToUri(); var endpoints = endpoint.SpreadForMessageSpecificTopics(handlers.ValidMessageTypeNames()); foreach (var topicEndpoint in endpoints) { topicEndpoint.Connect(); var agent = topicEndpoint.CreateListeningAgent(transportUri.ToUri(), settings, logger); _inner.Add(agent); } }