예제 #1
0
 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));
 }
예제 #2
0
 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);
 }