@@ -207,36 +207,29 @@ void ExchangeDeclare(string exchange,
207
207
[ AmqpMethodDoNotImplement ( null ) ]
208
208
void ExchangeDeclarePassive ( string exchange ) ;
209
209
210
- ///<summary>(Spec method) Delete an exchange.</summary>
211
- void ExchangeDelete ( string exchange ,
212
- bool ifUnused ,
213
- [ AmqpNowaitArgument ( null ) ]
214
- bool nowait ) ;
210
+ ///<summary>(Spec method) Delete an exchange.</summary>
211
+ [ AmqpMethodDoNotImplement ( null ) ]
212
+ void ExchangeDelete ( string exchange , bool ifUnused ) ;
215
213
216
- ///<summary>(Spec method) Delete an exchange.</summary>
214
+ ///<summary>(Spec method) Delete an exchange.</summary>
215
+ ///<remarks>
216
+ /// The exchange is deleted regardless of any queue bindings.
217
+ ///</remarks>
217
218
[ AmqpMethodDoNotImplement ( null ) ]
218
219
void ExchangeDelete ( string exchange ) ;
219
220
220
- ///<summary>(Spec method) Bind an exchange to an exchange.</summary>
221
- [ AmqpUnsupported ( "RabbitMQ.Client.Framing.v0_8" ) ,
222
- AmqpUnsupported ( "RabbitMQ.Client.Framing.v0_8qpid" ) ,
223
- AmqpUnsupported ( "RabbitMQ.Client.Framing.v0_9" ) ]
221
+ ///<summary>(Extension method) Bind an exchange to an exchange.</summary>
222
+ [ AmqpMethodDoNotImplement ( null ) ]
224
223
void ExchangeBind ( string destination ,
225
224
string source ,
226
225
string routingKey ,
227
- [ AmqpNowaitArgument ( null ) ]
228
- bool nowait ,
229
- IDictionary arguments ) ;
230
-
231
- ///<summary>(Spec method) Unbind an exchange from an exchange.</summary>
232
- [ AmqpUnsupported ( "RabbitMQ.Client.Framing.v0_8" ) ,
233
- AmqpUnsupported ( "RabbitMQ.Client.Framing.v0_8qpid" ) ,
234
- AmqpUnsupported ( "RabbitMQ.Client.Framing.v0_9" ) ]
226
+ IDictionary arguments ) ;
227
+
228
+ ///<summary>(Extension method) Unbind an exchange from an exchange.</summary>
229
+ [ AmqpMethodDoNotImplement ( null ) ]
235
230
void ExchangeUnbind ( string destination ,
236
231
string source ,
237
232
string routingKey ,
238
- [ AmqpNowaitArgument ( null ) ]
239
- bool nowait ,
240
233
IDictionary arguments ) ;
241
234
242
235
///<summary>(Spec method) Declare a queue.</summary>
@@ -263,12 +256,11 @@ void ExchangeUnbind(string destination,
263
256
string QueueDeclare ( string queue , bool durable , bool exclusive ,
264
257
bool autoDelete , IDictionary arguments ) ;
265
258
266
- ///<summary>(Spec method) Bind a queue to an exchange.</summary>
259
+ ///<summary>(Spec method) Bind a queue to an exchange.</summary>
260
+ [ AmqpMethodDoNotImplement ( null ) ]
267
261
void QueueBind ( string queue ,
268
262
string exchange ,
269
263
string routingKey ,
270
- [ AmqpNowaitArgument ( null ) ]
271
- bool nowait ,
272
264
IDictionary arguments ) ;
273
265
274
266
///<summary>(Spec method) Unbind a queue from an exchange.</summary>
@@ -286,26 +278,21 @@ void QueueUnbind(string queue,
286
278
287
279
///<summary>(Spec method) Purge a queue of messages.</summary>
288
280
///<remarks>
289
- ///Returns the number of messages purged. If nowait is
290
- ///specified, returns <code>uint.MaxValue</code>.
291
- ///</remarks>
292
- [ return : AmqpFieldMapping ( null , "messageCount" ) ]
293
- uint QueuePurge ( string queue ,
294
- [ AmqpNowaitArgument ( null , "0xFFFFFFFF" ) ]
295
- bool nowait ) ;
281
+ ///Returns the number of messages purged.
282
+ ///</remarks>
283
+ [ AmqpMethodDoNotImplement ( null ) ]
284
+ uint QueuePurge ( string queue ) ;
296
285
297
286
///<summary>(Spec method) Delete a queue.</summary>
298
287
///<remarks>
299
288
///Returns the number of messages purged during queue
300
- ///deletion. If nowait is specified, returns
289
+ ///deletion.
301
290
///<code>uint.MaxValue</code>.
302
- ///</remarks>
303
- [ return : AmqpFieldMapping ( null , "messageCount" ) ]
291
+ ///</remarks>
292
+ [ AmqpMethodDoNotImplement ( null ) ]
304
293
uint QueueDelete ( string queue ,
305
294
bool ifUnused ,
306
- bool ifEmpty ,
307
- [ AmqpNowaitArgument ( null , "0xFFFFFFFF" ) ]
308
- bool nowait ) ;
295
+ bool ifEmpty ) ;
309
296
310
297
///<summary>(Spec method) Delete a queue.</summary>
311
298
///<remarks>
@@ -322,14 +309,6 @@ uint QueueDelete(string queue,
322
309
[ AmqpUnsupported ( "RabbitMQ.Client.Framing.v0_9" ) ]
323
310
void ConfirmSelect ( ) ;
324
311
325
- ///<summary>Enable publisher acknowledgements.</summary>
326
- [ AmqpMethodDoNotImplement ( null ) ]
327
- [ AmqpUnsupported ( "RabbitMQ.Client.Framing.v0_8qpid" ) ]
328
- [ AmqpUnsupported ( "RabbitMQ.Client.Framing.v0_8" ) ]
329
- [ AmqpUnsupported ( "RabbitMQ.Client.Framing.v0_9" ) ]
330
- void ConfirmSelect ( bool nowait ) ;
331
-
332
-
333
312
///<summary>Start a Basic content-class consumer.</summary>
334
313
///<remarks>
335
314
///The consumer is started with noAck=false (i.e. BasicAck is required),
@@ -601,7 +580,44 @@ void _Private_ExchangeDeclare(string exchange,
601
580
bool @internal ,
602
581
[ AmqpNowaitArgument ( null ) ]
603
582
bool nowait ,
604
- IDictionary arguments ) ;
583
+ IDictionary arguments ) ;
584
+
585
+ ///<summary>Used to send a Exchange.Delete method. Called by the
586
+ ///public delete method.
587
+ ///</summary>
588
+ [ AmqpMethodMapping ( null , "exchange" , "delete" ) ]
589
+ void _Private_ExchangeDelete ( string exchange ,
590
+ bool ifUnused ,
591
+ [ AmqpNowaitArgument ( null ) ]
592
+ bool nowait ) ;
593
+
594
+ ///<summary>Used to send a Exchange.Bind method. Called by the
595
+ ///public bind method.
596
+ ///</summary>
597
+ [ AmqpUnsupported ( "RabbitMQ.Client.Framing.v0_8" ) ,
598
+ AmqpUnsupported ( "RabbitMQ.Client.Framing.v0_8qpid" ) ,
599
+ AmqpUnsupported ( "RabbitMQ.Client.Framing.v0_9" ) ]
600
+ [ AmqpMethodMapping ( null , "exchange" , "bind" ) ]
601
+ void _Private_ExchangeBind ( string destination ,
602
+ string source ,
603
+ string routingKey ,
604
+ [ AmqpNowaitArgument ( null ) ]
605
+ bool nowait ,
606
+ IDictionary arguments ) ;
607
+
608
+ ///<summary>Used to send a Exchange.Unbind method. Called by the
609
+ ///public unbind method.
610
+ ///</summary>
611
+ [ AmqpUnsupported ( "RabbitMQ.Client.Framing.v0_8" ) ,
612
+ AmqpUnsupported ( "RabbitMQ.Client.Framing.v0_8qpid" ) ,
613
+ AmqpUnsupported ( "RabbitMQ.Client.Framing.v0_9" ) ]
614
+ [ AmqpMethodMapping ( null , "exchange" , "unbind" ) ]
615
+ void _Private_ExchangeUnbind ( string destination ,
616
+ string source ,
617
+ string routingKey ,
618
+ [ AmqpNowaitArgument ( null ) ]
619
+ bool nowait ,
620
+ IDictionary arguments ) ;
605
621
606
622
///<summary>Used to send a Queue.Declare method. Called by the
607
623
///public declare method.</summary>
@@ -614,7 +630,36 @@ string _Private_QueueDeclare(string queue,
614
630
bool autoDelete ,
615
631
[ AmqpNowaitArgument ( null ) ]
616
632
bool nowait ,
617
- IDictionary arguments ) ;
633
+ IDictionary arguments ) ;
634
+
635
+ ///<summary>Used to send a Queue.Bind method. Called by the
636
+ ///public bind method.</summary>
637
+ [ AmqpMethodMapping ( null , "queue" , "bind" ) ]
638
+ void _Private_QueueBind ( string queue ,
639
+ string exchange ,
640
+ string routingKey ,
641
+ [ AmqpNowaitArgument ( null ) ]
642
+ bool nowait ,
643
+ IDictionary arguments ) ;
644
+
645
+ ///<summary>Used to send a Queue.Purge method. Called by the
646
+ ///public purge method.</summary>
647
+ [ return : AmqpFieldMapping ( null , "messageCount" ) ]
648
+ [ AmqpMethodMapping ( null , "queue" , "purge" ) ]
649
+ uint _Private_QueuePurge ( string queue ,
650
+ [ AmqpNowaitArgument ( null , "0xFFFFFFFF" ) ]
651
+ bool nowait ) ;
652
+
653
+
654
+ ///<summary>Used to send a Queue.Delete method. Called by the
655
+ ///public delete method.</summary>
656
+ [ AmqpMethodMapping ( null , "queue" , "delete" ) ]
657
+ [ return : AmqpFieldMapping ( null , "messageCount" ) ]
658
+ uint _Private_QueueDelete ( string queue ,
659
+ bool ifUnused ,
660
+ bool ifEmpty ,
661
+ [ AmqpNowaitArgument ( null , "0xFFFFFFFF" ) ]
662
+ bool nowait ) ;
618
663
619
664
///<summary>Used to send a Basic.Publish method. Called by the
620
665
///public publish method after potential null-reference issues
0 commit comments