public QueueDeclareOk QueueDeclare(string queue, bool durable, bool exclusive, bool autoDelete, IDictionary <string, object> arguments) { using var channel = new PoolObject <IModel>(_objectPool); return(channel.Item.QueueDeclare(queue, durable, exclusive, autoDelete, arguments)); }
public void ExchangeDeclare(string exchange, string type, bool durable, bool autoDelete, IDictionary <string, object> arguments) { using var channel = new PoolObject <IModel>(_objectPool); channel.Item.ExchangeDeclare(exchange, type, durable, autoDelete, arguments); }