38
38
// Copyright (c) 2007-2016 Pivotal Software, Inc. All rights reserved.
39
39
//---------------------------------------------------------------------------
40
40
41
- using RabbitMQ . Client ;
42
41
using RabbitMQ . Client . Apigen . Attributes ;
43
42
using RabbitMQ . Client . Events ;
44
- using RabbitMQ . Client . Impl ;
45
43
using System ;
46
44
using System . Collections . Generic ;
47
- using System . IO ;
48
45
49
46
namespace RabbitMQ . Client
50
47
{
@@ -195,38 +192,10 @@ public interface IModel : IDisposable
195
192
[ AmqpMethodDoNotImplement ( null ) ]
196
193
void BasicCancel ( string consumerTag ) ;
197
194
198
- /// <summary>Start a Basic content-class consumer.</summary>
199
- /// <remarks>
200
- /// The consumer is started with noAck=false (i.e. BasicAck is required),
201
- /// an empty consumer tag (i.e. the server creates and returns a fresh consumer tag),
202
- /// noLocal=false and exclusive=false.
203
- /// </remarks>
204
- [ AmqpMethodDoNotImplement ( null ) ]
205
- string BasicConsume ( string queue , bool noAck , IBasicConsumer consumer ) ;
206
-
207
- /// <summary>Start a Basic content-class consumer.</summary>
208
- /// <remarks>
209
- /// The consumer is started with
210
- /// an empty consumer tag (i.e. the server creates and returns a fresh consumer tag),
211
- /// noLocal=false and exclusive=false.
212
- /// </remarks>
213
- [ AmqpMethodDoNotImplement ( null ) ]
214
- string BasicConsume ( string queue , bool noAck , string consumerTag , IBasicConsumer consumer ) ;
215
-
216
- /// <summary>Start a Basic content-class consumer.</summary>
217
- /// <remarks>
218
- /// The consumer is started with noLocal=false and exclusive=false.
219
- /// </remarks>
220
- [ AmqpMethodDoNotImplement ( null ) ]
221
- string BasicConsume ( string queue ,
222
- bool noAck ,
223
- string consumerTag ,
224
- IDictionary < string , object > arguments ,
225
- IBasicConsumer consumer ) ;
226
-
227
195
/// <summary>Start a Basic content-class consumer.</summary>
228
196
[ AmqpMethodDoNotImplement ( null ) ]
229
- string BasicConsume ( string queue ,
197
+ string BasicConsume (
198
+ string queue ,
230
199
bool noAck ,
231
200
string consumerTag ,
232
201
bool noLocal ,
@@ -246,25 +215,7 @@ string BasicConsume(string queue,
246
215
void BasicNack ( ulong deliveryTag , bool multiple , bool requeue ) ;
247
216
248
217
/// <summary>
249
- /// (Spec method) Convenience overload of BasicPublish.
250
- /// </summary>
251
- /// <remarks>
252
- /// The publication occurs with mandatory=false and immediate=false.
253
- /// </remarks>
254
- [ AmqpMethodDoNotImplement ( null ) ]
255
- void BasicPublish ( PublicationAddress addr , IBasicProperties basicProperties , byte [ ] body ) ;
256
-
257
- /// <summary>
258
- /// (Spec method) Convenience overload of BasicPublish.
259
- /// </summary>
260
- /// <remarks>
261
- /// The publication occurs with mandatory=false
262
- /// </remarks>
263
- [ AmqpMethodDoNotImplement ( null ) ]
264
- void BasicPublish ( string exchange , string routingKey , IBasicProperties basicProperties , byte [ ] body ) ;
265
-
266
- /// <summary>
267
- /// (Spec method) Convenience overload of BasicPublish.
218
+ /// (Spec method) Publishes a message.
268
219
/// </summary>
269
220
[ AmqpMethodDoNotImplement ( null ) ]
270
221
void BasicPublish ( string exchange , string routingKey , bool mandatory ,
@@ -332,12 +283,6 @@ void BasicPublish(string exchange, string routingKey, bool mandatory,
332
283
[ AmqpMethodDoNotImplement ( null ) ]
333
284
void ExchangeBind ( string destination , string source , string routingKey , IDictionary < string , object > arguments ) ;
334
285
335
- /// <summary>
336
- /// (Extension method) Bind an exchange to an exchange.
337
- /// </summary>
338
- [ AmqpMethodDoNotImplement ( null ) ]
339
- void ExchangeBind ( string destination , string source , string routingKey ) ;
340
-
341
286
/// <summary>
342
287
///Like ExchangeBind but sets nowait to true.
343
288
/// </summary>
@@ -353,26 +298,6 @@ void ExchangeBindNoWait(string destination, string source, string routingKey,
353
298
void ExchangeDeclare ( string exchange , string type , bool durable , bool autoDelete ,
354
299
IDictionary < string , object > arguments ) ;
355
300
356
- /// <summary>
357
- /// (Spec method) Declare an exchange.
358
- /// </summary>
359
- /// <remarks>
360
- /// The exchange is declared non-passive, non-autodelete, and
361
- /// non-internal, with no arguments. The "nowait" option is not exercised.
362
- /// </remarks>
363
- [ AmqpMethodDoNotImplement ( null ) ]
364
- void ExchangeDeclare ( string exchange , string type , bool durable ) ;
365
-
366
- /// <summary>
367
- /// (Spec method) Declare an exchange.
368
- /// </summary>
369
- /// <remarks>
370
- /// The exchange is declared non-passive, non-durable, non-autodelete, and
371
- /// non-internal, with no arguments. The "nowait" option is not exercised.
372
- /// </remarks>
373
- [ AmqpMethodDoNotImplement ( null ) ]
374
- void ExchangeDeclare ( string exchange , string type ) ;
375
-
376
301
/// <summary>
377
302
/// Same as ExchangeDeclare but sets nowait to true and returns void (as there
378
303
/// will be no response from the server).
@@ -395,13 +320,6 @@ void ExchangeDeclareNoWait(string exchange, string type, bool durable, bool auto
395
320
[ AmqpMethodDoNotImplement ( null ) ]
396
321
void ExchangeDelete ( string exchange , bool ifUnused ) ;
397
322
398
- /// <summary>(Spec method) Delete an exchange.</summary>
399
- /// <remarks>
400
- /// The exchange is deleted regardless of any queue bindings.
401
- /// </remarks>
402
- [ AmqpMethodDoNotImplement ( null ) ]
403
- void ExchangeDelete ( string exchange ) ;
404
-
405
323
/// <summary>
406
324
///Like ExchangeDelete but sets nowait to true.
407
325
/// </summary>
@@ -416,12 +334,6 @@ void ExchangeUnbind(string destination,
416
334
string routingKey ,
417
335
IDictionary < string , object > arguments ) ;
418
336
419
- /// <summary>
420
- /// (Extension method) Unbind an exchange from an exchange.
421
- /// </summary>
422
- [ AmqpMethodDoNotImplement ( null ) ]
423
- void ExchangeUnbind ( string destination , string source , string routingKey ) ;
424
-
425
337
/// <summary>
426
338
/// Like ExchangeUnbind but sets nowait to true.
427
339
/// </summary>
@@ -435,22 +347,9 @@ void ExchangeUnbindNoWait(string destination, string source, string routingKey,
435
347
[ AmqpMethodDoNotImplement ( null ) ]
436
348
void QueueBind ( string queue , string exchange , string routingKey , IDictionary < string , object > arguments ) ;
437
349
438
- /// <summary>(Spec method) Bind a queue to an exchange.</summary>
439
- [ AmqpMethodDoNotImplement ( null ) ]
440
- void QueueBind ( string queue , string exchange , string routingKey ) ;
441
-
442
350
/// <summary>Same as QueueBind but sets nowait parameter to true.</summary>
443
351
void QueueBindNoWait ( string queue , string exchange , string routingKey , IDictionary < string , object > arguments ) ;
444
352
445
- /// <summary>(Spec method) Declare a queue.</summary>
446
- /// <remarks>
447
- /// The queue is declared non-passive, non-durable,
448
- /// but exclusive and autodelete, with no arguments. The
449
- /// server autogenerates a name for the queue - the generated name is the return value of this method.
450
- /// </remarks>
451
- [ AmqpMethodDoNotImplement ( null ) ]
452
- QueueDeclareOk QueueDeclare ( ) ;
453
-
454
353
/// <summary>(Spec method) Declare a queue.</summary>
455
354
[ AmqpMethodDoNotImplement ( null ) ]
456
355
QueueDeclareOk QueueDeclare ( string queue , bool durable , bool exclusive ,
@@ -460,8 +359,9 @@ QueueDeclareOk QueueDeclare(string queue, bool durable, bool exclusive,
460
359
/// Same as QueueDeclare but sets nowait to true and returns void (as there
461
360
/// will be no response from the server).
462
361
/// </summary>
463
- void QueueDeclareNoWait ( string queue , bool durable , bool exclusive ,
464
- bool autoDelete , IDictionary < string , object > arguments ) ;
362
+ void QueueDeclareNoWait ( string queue , bool durable ,
363
+ bool exclusive , bool autoDelete ,
364
+ IDictionary < string , object > arguments ) ;
465
365
466
366
/// <summary>Declare a queue passively.</summary>
467
367
/// <remarks>
@@ -500,15 +400,6 @@ void QueueDeclareNoWait(string queue, bool durable, bool exclusive,
500
400
[ AmqpMethodDoNotImplement ( null ) ]
501
401
uint QueueDelete ( string queue , bool ifUnused , bool ifEmpty ) ;
502
402
503
- /// <summary>
504
- /// (Spec method) Delete a queue.
505
- /// </summary>
506
- /// <remarks>
507
- ///Returns the number of messages purged during queue deletion.
508
- /// </remarks>
509
- [ AmqpMethodDoNotImplement ( null ) ]
510
- uint QueueDelete ( string queue ) ;
511
-
512
403
/// <summary>
513
404
///Same as QueueDelete but sets nowait parameter to true
514
405
///and returns void (as there will be no response from the server)
0 commit comments