32
32
using System ;
33
33
using System . Collections . Generic ;
34
34
35
- using RabbitMQ . Client . Apigen . Attributes ;
36
35
using RabbitMQ . Client . Events ;
37
36
38
37
namespace RabbitMQ . Client
@@ -154,7 +153,6 @@ public interface IModel : IDisposable
154
153
/// In comparison to normal <see cref="Close()"/> method, <see cref="Abort()"/> will not throw
155
154
/// <see cref="Exceptions.AlreadyClosedException"/> or <see cref="System.IO.IOException"/> or any other <see cref="Exception"/> during closing model.
156
155
/// </remarks>
157
- [ AmqpMethodDoNotImplement ( null ) ]
158
156
void Abort ( ) ;
159
157
160
158
/// <summary>
@@ -170,7 +168,6 @@ public interface IModel : IDisposable
170
168
/// A message indicating the reason for closing the model
171
169
/// </para>
172
170
/// </remarks>
173
- [ AmqpMethodDoNotImplement ( null ) ]
174
171
void Abort ( ushort replyCode , string replyText ) ;
175
172
176
173
/// <summary>
@@ -181,7 +178,6 @@ public interface IModel : IDisposable
181
178
/// <summary>
182
179
/// Delete a Basic content-class consumer.
183
180
/// </summary>
184
- [ AmqpMethodDoNotImplement ( null ) ]
185
181
void BasicCancel ( string consumerTag ) ;
186
182
187
183
/// <summary>
@@ -191,7 +187,6 @@ public interface IModel : IDisposable
191
187
void BasicCancelNoWait ( string consumerTag ) ;
192
188
193
189
/// <summary>Start a Basic content-class consumer.</summary>
194
- [ AmqpMethodDoNotImplement ( null ) ]
195
190
string BasicConsume (
196
191
string queue ,
197
192
bool autoAck ,
@@ -206,7 +201,6 @@ string BasicConsume(
206
201
/// one is available; returns null if the server answers that
207
202
/// no messages are currently available. See also <see cref="IModel.BasicAck"/>.
208
203
/// </summary>
209
- [ AmqpMethodDoNotImplement ( null ) ]
210
204
BasicGetResult BasicGet ( string queue , bool autoAck ) ;
211
205
212
206
/// <summary>Reject one or more delivered message(s).</summary>
@@ -220,9 +214,7 @@ string BasicConsume(
220
214
/// Routing key must be shorter than 255 bytes.
221
215
/// </para>
222
216
/// </remarks>
223
- [ AmqpMethodDoNotImplement ( null ) ]
224
- void BasicPublish ( string exchange , string routingKey , bool mandatory ,
225
- IBasicProperties basicProperties , ReadOnlyMemory < byte > body ) ;
217
+ void BasicPublish ( string exchange , string routingKey , bool mandatory , IBasicProperties basicProperties , ReadOnlyMemory < byte > body ) ;
226
218
227
219
/// <summary>
228
220
/// Configures QoS parameters of the Basic content-class.
@@ -233,7 +225,6 @@ void BasicPublish(string exchange, string routingKey, bool mandatory,
233
225
/// Indicates that a consumer has recovered.
234
226
/// Deprecated. Should not be used.
235
227
/// </summary>
236
- [ AmqpMethodDoNotImplement ( null ) ]
237
228
void BasicRecover ( bool requeue ) ;
238
229
239
230
/// <summary>
@@ -252,7 +243,6 @@ void BasicPublish(string exchange, string routingKey, bool mandatory,
252
243
/// operation to complete. This method will not return to the
253
244
/// caller until the shutdown is complete.
254
245
/// </remarks>
255
- [ AmqpMethodDoNotImplement ( null ) ]
256
246
void Close ( ) ;
257
247
258
248
/// <summary>Close this session.</summary>
@@ -267,31 +257,26 @@ void BasicPublish(string exchange, string routingKey, bool mandatory,
267
257
/// A message indicating the reason for closing the model
268
258
/// </para>
269
259
/// </remarks>
270
- [ AmqpMethodDoNotImplement ( null ) ]
271
260
void Close ( ushort replyCode , string replyText ) ;
272
261
273
262
/// <summary>
274
263
/// Enable publisher acknowledgements.
275
264
/// </summary>
276
- [ AmqpMethodDoNotImplement ( null ) ]
277
265
void ConfirmSelect ( ) ;
278
266
279
267
/// <summary>
280
268
/// Creates a BasicPublishBatch instance
281
269
/// </summary>
282
- [ AmqpMethodDoNotImplement ( null ) ]
283
270
IBasicPublishBatch CreateBasicPublishBatch ( ) ;
284
271
285
272
/// <summary>
286
273
/// Creates a BasicPublishBatch instance
287
274
/// </summary>
288
- [ AmqpMethodDoNotImplement ( null ) ]
289
275
IBasicPublishBatch CreateBasicPublishBatch ( int sizeHint ) ;
290
276
291
277
/// <summary>
292
278
/// Construct a completely empty content header for use with the Basic content class.
293
279
/// </summary>
294
- [ AmqpContentHeaderFactory ( "basic" ) ]
295
280
IBasicProperties CreateBasicProperties ( ) ;
296
281
297
282
/// <summary>
@@ -301,8 +286,7 @@ void BasicPublish(string exchange, string routingKey, bool mandatory,
301
286
/// <para>
302
287
/// Routing key must be shorter than 255 bytes.
303
288
/// </para>
304
- /// </remarks>
305
- [ AmqpMethodDoNotImplement ( null ) ]
289
+ /// </remarks>
306
290
void ExchangeBind ( string destination , string source , string routingKey , IDictionary < string , object > arguments ) ;
307
291
308
292
/// <summary>
@@ -312,25 +296,21 @@ void BasicPublish(string exchange, string routingKey, bool mandatory,
312
296
/// <para>
313
297
/// Routing key must be shorter than 255 bytes.
314
298
/// </para>
315
- /// </remarks>
316
- void ExchangeBindNoWait ( string destination , string source , string routingKey ,
317
- IDictionary < string , object > arguments ) ;
299
+ /// </remarks>
300
+ void ExchangeBindNoWait ( string destination , string source , string routingKey , IDictionary < string , object > arguments ) ;
318
301
319
302
/// <summary>Declare an exchange.</summary>
320
303
/// <remarks>
321
304
/// The exchange is declared non-passive and non-internal.
322
305
/// The "nowait" option is not exercised.
323
306
/// </remarks>
324
- [ AmqpMethodDoNotImplement ( null ) ]
325
- void ExchangeDeclare ( string exchange , string type , bool durable , bool autoDelete ,
326
- IDictionary < string , object > arguments ) ;
307
+ void ExchangeDeclare ( string exchange , string type , bool durable , bool autoDelete , IDictionary < string , object > arguments ) ;
327
308
328
309
/// <summary>
329
310
/// Same as ExchangeDeclare but sets nowait to true and returns void (as there
330
311
/// will be no response from the server).
331
312
/// </summary>
332
- void ExchangeDeclareNoWait ( string exchange , string type , bool durable , bool autoDelete ,
333
- IDictionary < string , object > arguments ) ;
313
+ void ExchangeDeclareNoWait ( string exchange , string type , bool durable , bool autoDelete , IDictionary < string , object > arguments ) ;
334
314
335
315
/// <summary>
336
316
/// Do a passive exchange declaration.
@@ -341,13 +321,11 @@ void ExchangeDeclareNoWait(string exchange, string type, bool durable, bool auto
341
321
/// It will do nothing if the exchange already exists and result
342
322
/// in a channel-level protocol exception (channel closure) if not.
343
323
/// </remarks>
344
- [ AmqpMethodDoNotImplement ( null ) ]
345
324
void ExchangeDeclarePassive ( string exchange ) ;
346
325
347
326
/// <summary>
348
327
/// Delete an exchange.
349
328
/// </summary>
350
- [ AmqpMethodDoNotImplement ( null ) ]
351
329
void ExchangeDelete ( string exchange , bool ifUnused ) ;
352
330
353
331
/// <summary>
@@ -361,11 +339,7 @@ void ExchangeDeclareNoWait(string exchange, string type, bool durable, bool auto
361
339
/// <remarks>
362
340
/// Routing key must be shorter than 255 bytes.
363
341
/// </remarks>
364
- [ AmqpMethodDoNotImplement ( null ) ]
365
- void ExchangeUnbind ( string destination ,
366
- string source ,
367
- string routingKey ,
368
- IDictionary < string , object > arguments ) ;
342
+ void ExchangeUnbind ( string destination , string source , string routingKey , IDictionary < string , object > arguments ) ;
369
343
370
344
/// <summary>
371
345
/// Like ExchangeUnbind but sets nowait to true.
@@ -375,9 +349,7 @@ void ExchangeUnbind(string destination,
375
349
/// Routing key must be shorter than 255 bytes.
376
350
/// </para>
377
351
/// </remarks>
378
- [ AmqpMethodDoNotImplement ( null ) ]
379
- void ExchangeUnbindNoWait ( string destination , string source , string routingKey ,
380
- IDictionary < string , object > arguments ) ;
352
+ void ExchangeUnbindNoWait ( string destination , string source , string routingKey , IDictionary < string , object > arguments ) ;
381
353
382
354
/// <summary>
383
355
/// Bind a queue to an exchange.
@@ -386,38 +358,32 @@ void ExchangeUnbindNoWait(string destination, string source, string routingKey,
386
358
/// <para>
387
359
/// Routing key must be shorter than 255 bytes.
388
360
/// </para>
389
- /// </remarks>
390
- [ AmqpMethodDoNotImplement ( null ) ]
361
+ /// </remarks>
391
362
void QueueBind ( string queue , string exchange , string routingKey , IDictionary < string , object > arguments ) ;
392
363
393
364
/// <summary>Same as QueueBind but sets nowait parameter to true.</summary>
394
365
/// <remarks>
395
366
/// <para>
396
367
/// Routing key must be shorter than 255 bytes.
397
368
/// </para>
398
- /// </remarks>
369
+ /// </remarks>
399
370
void QueueBindNoWait ( string queue , string exchange , string routingKey , IDictionary < string , object > arguments ) ;
400
371
401
372
/// <summary> Declare a queue.</summary>
402
- [ AmqpMethodDoNotImplement ( null ) ]
403
- QueueDeclareOk QueueDeclare ( string queue , bool durable , bool exclusive ,
404
- bool autoDelete , IDictionary < string , object > arguments ) ;
373
+ QueueDeclareOk QueueDeclare ( string queue , bool durable , bool exclusive , bool autoDelete , IDictionary < string , object > arguments ) ;
405
374
406
375
/// <summary>
407
376
/// Same as QueueDeclare but sets nowait to true and returns void (as there
408
377
/// will be no response from the server).
409
378
/// </summary>
410
- void QueueDeclareNoWait ( string queue , bool durable ,
411
- bool exclusive , bool autoDelete ,
412
- IDictionary < string , object > arguments ) ;
379
+ void QueueDeclareNoWait ( string queue , bool durable , bool exclusive , bool autoDelete , IDictionary < string , object > arguments ) ;
413
380
414
381
/// <summary>Declare a queue passively.</summary>
415
382
/// <remarks>
416
383
///The queue is declared passive, non-durable,
417
384
///non-exclusive, and non-autodelete, with no arguments.
418
385
///The queue is declared passively; i.e. only check if it exists.
419
386
/// </remarks>
420
- [ AmqpMethodDoNotImplement ( null ) ]
421
387
QueueDeclareOk QueueDeclarePassive ( string queue ) ;
422
388
423
389
/// <summary>
@@ -426,7 +392,6 @@ void QueueDeclareNoWait(string queue, bool durable,
426
392
/// an exception will be closed with an exception.
427
393
/// </summary>
428
394
/// <param name="queue">The name of the queue</param>
429
- [ AmqpMethodDoNotImplement ( null ) ]
430
395
uint MessageCount ( string queue ) ;
431
396
432
397
/// <summary>
@@ -435,7 +400,6 @@ void QueueDeclareNoWait(string queue, bool durable,
435
400
/// an exception will be closed with an exception.
436
401
/// </summary>
437
402
/// <param name="queue">The name of the queue</param>
438
- [ AmqpMethodDoNotImplement ( null ) ]
439
403
uint ConsumerCount ( string queue ) ;
440
404
441
405
/// <summary>
@@ -445,7 +409,6 @@ void QueueDeclareNoWait(string queue, bool durable,
445
409
///Returns the number of messages purged during queue deletion.
446
410
/// <code>uint.MaxValue</code>.
447
411
/// </remarks>
448
- [ AmqpMethodDoNotImplement ( null ) ]
449
412
uint QueueDelete ( string queue , bool ifUnused , bool ifEmpty ) ;
450
413
451
414
/// <summary>
@@ -460,7 +423,6 @@ void QueueDeclareNoWait(string queue, bool durable,
460
423
/// <remarks>
461
424
/// Returns the number of messages purged.
462
425
/// </remarks>
463
- [ AmqpMethodDoNotImplement ( null ) ]
464
426
uint QueuePurge ( string queue ) ;
465
427
466
428
/// <summary>
@@ -470,7 +432,7 @@ void QueueDeclareNoWait(string queue, bool durable,
470
432
/// <para>
471
433
/// Routing key must be shorter than 255 bytes.
472
434
/// </para>
473
- /// </remarks>
435
+ /// </remarks>
474
436
void QueueUnbind ( string queue , string exchange , string routingKey , IDictionary < string , object > arguments ) ;
475
437
476
438
/// <summary>
@@ -496,7 +458,6 @@ void QueueDeclareNoWait(string queue, bool durable,
496
458
/// all the messages were ack'd (and none were nack'd). Note,
497
459
/// throws an exception when called on a non-Confirm channel.
498
460
/// </remarks>
499
- [ AmqpMethodDoNotImplement ( null ) ]
500
461
bool WaitForConfirms ( ) ;
501
462
502
463
/// <summary>
@@ -512,7 +473,6 @@ void QueueDeclareNoWait(string queue, bool durable,
512
473
/// all the messages were ack'd (and none were nack'd). Note,
513
474
/// throws an exception when called on a non-Confirm channel.
514
475
/// </remarks>
515
- [ AmqpMethodDoNotImplement ( null ) ]
516
476
bool WaitForConfirms ( TimeSpan timeout ) ;
517
477
518
478
/// <summary>
@@ -531,7 +491,6 @@ void QueueDeclareNoWait(string queue, bool durable,
531
491
/// all the messages were ack'd (and none were nack'd). Note,
532
492
/// throws an exception when called on a non-Confirm channel.
533
493
/// </remarks>
534
- [ AmqpMethodDoNotImplement ( null ) ]
535
494
bool WaitForConfirms ( TimeSpan timeout , out bool timedOut ) ;
536
495
537
496
/// <summary>
@@ -542,7 +501,6 @@ void QueueDeclareNoWait(string queue, bool durable,
542
501
/// been ack'd by the broker. If a nack is received, throws an
543
502
/// OperationInterrupedException exception immediately.
544
503
/// </remarks>
545
- [ AmqpMethodDoNotImplement ( null ) ]
546
504
void WaitForConfirmsOrDie ( ) ;
547
505
548
506
/// <summary>
@@ -553,7 +511,6 @@ void QueueDeclareNoWait(string queue, bool durable,
553
511
/// been ack'd by the broker. If a nack is received or the timeout
554
512
/// elapses, throws an OperationInterrupedException exception immediately.
555
513
/// </remarks>
556
- [ AmqpMethodDoNotImplement ( null ) ]
557
514
void WaitForConfirmsOrDie ( TimeSpan timeout ) ;
558
515
559
516
/// <summary>
0 commit comments