コード例 #1
0
ファイル: net_4_5-api-0-8.cs プロジェクト: nlhepler/mono
 public override void ExchangeDeclare(
   System.String @exchange,
   System.String @type,
   System.Boolean @passive,
   System.Boolean @durable,
   System.Boolean @autoDelete,
   System.Boolean @internal,
   System.Boolean @nowait,
   System.Collections.IDictionary @arguments)
 {
   ExchangeDeclare __req = new ExchangeDeclare();
   __req.m_exchange = @exchange;
   __req.m_type = @type;
   __req.m_passive = @passive;
   __req.m_durable = @durable;
   __req.m_autoDelete = @autoDelete;
   __req.m_internal = @internal;
   __req.m_nowait = @nowait;
   __req.m_arguments = @arguments;
   if (nowait) {
     ModelSend(__req,null,null);
   }
   RabbitMQ.Client.Impl.MethodBase __repBase = ModelRpc(__req,null,null);
   ExchangeDeclareOk __rep = __repBase as ExchangeDeclareOk;
   if (__rep == null) throw new UnexpectedMethodException(__repBase);
 }
コード例 #2
0
   public override void _Private_ExchangeDeclare(
 string @exchange,
 string @type,
 bool @passive,
 bool @durable,
 bool @autoDelete,
 bool @internal,
 bool @nowait,
 System.Collections.Generic.IDictionary<string, object> @arguments)
   {
       ExchangeDeclare __req = new ExchangeDeclare();
         __req.m_exchange = @exchange;
         __req.m_type = @type;
         __req.m_passive = @passive;
         __req.m_durable = @durable;
         __req.m_autoDelete = @autoDelete;
         __req.m_internal = @internal;
         __req.m_nowait = @nowait;
         __req.m_arguments = @arguments;
         if (nowait) {
       ModelSend(__req,null,null);
       return;
         }
         RabbitMQ.Client.Impl.MethodBase __repBase = ModelRpc(__req,null,null);
         ExchangeDeclareOk __rep = __repBase as ExchangeDeclareOk;
         if (__rep == null) throw new UnexpectedMethodException(__repBase);
   }