public RabbitConsumer(IRabbitConnectionCreator creator, string queue, bool autoAck) { this.creator = creator; this.queue = queue; this.autoAck = autoAck; creator.GetConnection().ConnectionShutdown += HandleShutdown; }
public RabbitPublisher(IRabbitConnectionCreator creator, string exchange, IBasicProperties basicProperties, bool confirmPublish) { this.creator = creator; this.exchange = exchange; this.basicProperties = basicProperties; this.requireReliableDelivery = confirmPublish; if (confirmPublish) { waitFromConfirmationTimeSpan = new TimeSpan(0, 0, WAIT_FOR_CONFIRMATION_SECONDS); } }
internal void Init(IRabbitConnectionCreator connectionCreator, ushort qosPreFetchLimit) { this.creator = connectionCreator; //this.connection = connectionCreator.CreateConnection(); // connection.ConnectionShutdown += HandleShutdown; //this.channel = this.connection.CreateModel(); Durable = true; this.QosPreFetchLimit = qosPreFetchLimit; this.QueueArguments = new Dictionary <string, object>(); }
public RabbitPublisherBuilder(IRabbitConnectionCreator connectionCreator, ushort qosPreFetchLimit) : base(connectionCreator, qosPreFetchLimit) { this.connectionCreator = connectionCreator; Persistent = true; connectionCreator.GetChannel().BasicReturn += HandleReturn; }
public RabbitConsumerBuilder(IRabbitConnectionCreator creator, ushort qosPreFetchLimit) : base(creator, qosPreFetchLimit) { this.creator = creator; }
internal RabbitBuilder(IRabbitConnectionCreator connectionCreator, ushort qosPreFetchLimit) { Init(connectionCreator, qosPreFetchLimit); }