Example #1
0
 public override void QueueBind(
   System.String @queue,
   System.String @exchange,
   System.String @routingKey,
   System.Boolean @nowait,
   System.Collections.IDictionary @arguments)
 {
   QueueBind __req = new QueueBind();
   __req.m_queue = @queue;
   __req.m_exchange = @exchange;
   __req.m_routingKey = @routingKey;
   __req.m_nowait = @nowait;
   __req.m_arguments = @arguments;
   if (nowait) {
     ModelSend(__req,null,null);
   }
   RabbitMQ.Client.Impl.MethodBase __repBase = ModelRpc(__req,null,null);
   QueueBindOk __rep = __repBase as QueueBindOk;
   if (__rep == null) throw new UnexpectedMethodException(__repBase);
 }
   public override void _Private_QueueBind(
 string @queue,
 string @exchange,
 string @routingKey,
 bool @nowait,
 System.Collections.Generic.IDictionary<string, object> @arguments)
   {
       QueueBind __req = new QueueBind();
         __req.m_queue = @queue;
         __req.m_exchange = @exchange;
         __req.m_routingKey = @routingKey;
         __req.m_nowait = @nowait;
         __req.m_arguments = @arguments;
         if (nowait) {
       ModelSend(__req,null,null);
       return;
         }
         RabbitMQ.Client.Impl.MethodBase __repBase = ModelRpc(__req,null,null);
         QueueBindOk __rep = __repBase as QueueBindOk;
         if (__rep == null) throw new UnexpectedMethodException(__repBase);
   }