// CONSTRUCTORS public Producer(IConnectionFactory connectionFactory, Settings settings) { this.connectionLine = new ConnectionLine(connectionFactory, settings); this.publicationAddress = new PublicationAddress( settings.ExchangeType, settings.ExchangeName, settings.RoutingKey); }
// CONSTRUCTORS public Consumer(IConnectionFactory connectionFactory, Settings settings) { this.connectionLine = new ConnectionLine(connectionFactory, settings); this.subscription = new Subscription(connectionLine.Channel, settings.QueueName, autoAck: false); }