/// <summary>Mains the specified args.</summary> /// <param name="args">The args.</param> public static void Main(string[] args) { var connectionFactory = new SingleConnectionFactory("localhost"); connectionFactory.UserName = "******"; connectionFactory.Password = "******"; var template = new RabbitTemplate(); template.ConnectionFactory = connectionFactory; template.ChannelTransacted = true; template.AfterPropertiesSet(); var routingKey = TestConstants.ROUTING_KEY; QueueUtils.DeclareTestQueue(template, routingKey); // Send message SendMessages(template, TestConstants.EXCHANGE_NAME, routingKey, TestConstants.NUM_MESSAGES); }
/// <summary>Initializes a new instance of the <see cref="SharedConnectionProxy"/> class.</summary> /// <param name="target">The target.</param> /// <param name="outer">The outer.</param> public SharedConnectionProxy(IConnection target, SingleConnectionFactory outer) { this.target = target; this.outer = outer; }