/// <summary> /// The build senders. /// </summary> private void BuildSenders() { this.ProducerRegistry = new ProducerRegistry(this); this.Configuration.SenderConfigurations.ForEach( c => { var sender = new RabbitSender(this.Configuration.Endpoint, c, this.ProducerRegistry, this.Configuration.Filters.ToList()); this.ComponentTracker.Register(sender); }); }
/// <summary> /// Registers a sender using <paramref name="configuration"/> /// </summary> /// <param name="configuration"> /// Sender configuration /// </param> /// <returns> /// The <see cref="RabbitSender"/>. /// </returns> public RabbitSender RegisterSender(ISenderConfiguration configuration) { this.logger.Trace( $"Registering a new sender of [{configuration.Label}] with connection string [{configuration.Options.GetConnectionString()}]"); var sender = new RabbitSender(this, configuration, this.connectionPool, this.Configuration.Filters.ToList()); this.ComponentTracker.Register(sender); this.logger.Trace( $"A sender of [{configuration.Label}] with connection string [{configuration.Options.GetConnectionString()}] registered successfully"); return(sender); }
/// <summary> /// The build senders. /// </summary> private void BuildSenders() { this.ProducerRegistry = new ProducerRegistry(this); this.Configuration.SenderConfigurations.ForEach( c => { var sender = new RabbitSender(this.Configuration.Endpoint, c, this.ProducerRegistry, this.Configuration.Filters.ToList()); this.ComponentTracker.Register(sender); }); }