Skip to content

Commit 7b43fbd

Browse files
Minor IModel API reference improvements (for 3.6.x)
1 parent 4b4ccaf commit 7b43fbd

File tree

1 file changed

+69
-29
lines changed
  • projects/client/RabbitMQ.Client/src/client/api

1 file changed

+69
-29
lines changed

projects/client/RabbitMQ.Client/src/client/api/IModel.cs

Lines changed: 69 additions & 29 deletions
Original file line numberDiff line numberDiff line change
@@ -185,7 +185,7 @@ public interface IModel : IDisposable
185185
void Abort(ushort replyCode, string replyText);
186186

187187
/// <summary>
188-
/// (Spec method) Acknowledge one or more delivered message(s).
188+
/// Acknowledge one or more delivered message(s).
189189
/// </summary>
190190
void BasicAck(ulong deliveryTag, bool multiple);
191191

@@ -235,7 +235,7 @@ string BasicConsume(string queue,
235235
IBasicConsumer consumer);
236236

237237
/// <summary>
238-
/// (Spec method) Retrieve an individual message, if
238+
/// Retrieve an individual message, if
239239
/// one is available; returns null if the server answers that
240240
/// no messages are currently available. See also <see cref="IModel.BasicAck"/>.
241241
/// </summary>
@@ -246,7 +246,7 @@ string BasicConsume(string queue,
246246
void BasicNack(ulong deliveryTag, bool multiple, bool requeue);
247247

248248
/// <summary>
249-
/// (Spec method) Convenience overload of BasicPublish.
249+
/// Convenience overload of BasicPublish.
250250
/// </summary>
251251
/// <remarks>
252252
/// The publication occurs with mandatory=false and immediate=false.
@@ -255,7 +255,7 @@ string BasicConsume(string queue,
255255
void BasicPublish(PublicationAddress addr, IBasicProperties basicProperties, byte[] body);
256256

257257
/// <summary>
258-
/// (Spec method) Convenience overload of BasicPublish.
258+
/// Convenience overload of BasicPublish.
259259
/// </summary>
260260
/// <remarks>
261261
/// The publication occurs with mandatory=false
@@ -264,14 +264,14 @@ string BasicConsume(string queue,
264264
void BasicPublish(string exchange, string routingKey, IBasicProperties basicProperties, byte[] body);
265265

266266
/// <summary>
267-
/// (Spec method) Convenience overload of BasicPublish.
267+
/// Convenience overload of BasicPublish.
268268
/// </summary>
269269
[AmqpMethodDoNotImplement(null)]
270270
void BasicPublish(string exchange, string routingKey, bool mandatory,
271271
IBasicProperties basicProperties, byte[] body);
272272

273273
/// <summary>
274-
/// (Spec method) Configures QoS parameters of the Basic content-class.
274+
/// Configures QoS parameters of the Basic content-class.
275275
/// </summary>
276276
void BasicQos(uint prefetchSize, ushort prefetchCount, bool global);
277277

@@ -286,7 +286,7 @@ void BasicPublish(string exchange, string routingKey, bool mandatory,
286286
/// </summary>
287287
void BasicRecoverAsync(bool requeue);
288288

289-
/// <summary>(Spec method) Reject a delivered message.</summary>
289+
/// <summary>Reject a delivered message.</summary>
290290
void BasicReject(ulong deliveryTag, bool requeue);
291291

292292
/// <summary>Close this session.</summary>
@@ -327,24 +327,39 @@ void BasicPublish(string exchange, string routingKey, bool mandatory,
327327
IBasicProperties CreateBasicProperties();
328328

329329
/// <summary>
330-
/// (Extension method) Bind an exchange to an exchange.
330+
/// Bind an exchange to an exchange.
331331
/// </summary>
332+
/// <remarks>
333+
/// <para>
334+
/// Routing key must be shorter than 255 bytes.
335+
/// </para>
336+
/// </remarks>
332337
[AmqpMethodDoNotImplement(null)]
333338
void ExchangeBind(string destination, string source, string routingKey, IDictionary<string, object> arguments);
334339

335340
/// <summary>
336-
/// (Extension method) Bind an exchange to an exchange.
341+
/// Bind an exchange to an exchange.
337342
/// </summary>
343+
/// <remarks>
344+
/// <para>
345+
/// Routing key must be shorter than 255 bytes.
346+
/// </para>
347+
/// </remarks>
338348
[AmqpMethodDoNotImplement(null)]
339349
void ExchangeBind(string destination, string source, string routingKey);
340350

341351
/// <summary>
342-
///Like ExchangeBind but sets nowait to true.
352+
/// Like ExchangeBind but sets nowait to true.
343353
/// </summary>
354+
/// <remarks>
355+
/// <para>
356+
/// Routing key must be shorter than 255 bytes.
357+
/// </para>
358+
/// </remarks>
344359
void ExchangeBindNoWait(string destination, string source, string routingKey,
345360
IDictionary<string, object> arguments);
346361

347-
/// <summary>(Spec method) Declare an exchange.</summary>
362+
/// <summary>Declare an exchange.</summary>
348363
/// <remarks>
349364
/// The exchange is declared non-passive and non-internal.
350365
/// The "nowait" option is not exercised.
@@ -354,7 +369,7 @@ void ExchangeDeclare(string exchange, string type, bool durable, bool autoDelete
354369
IDictionary<string, object> arguments);
355370

356371
/// <summary>
357-
/// (Spec method) Declare an exchange.
372+
/// Declare an exchange.
358373
/// </summary>
359374
/// <remarks>
360375
/// The exchange is declared non-passive, non-autodelete, and
@@ -364,7 +379,7 @@ void ExchangeDeclare(string exchange, string type, bool durable, bool autoDelete
364379
void ExchangeDeclare(string exchange, string type, bool durable);
365380

366381
/// <summary>
367-
/// (Spec method) Declare an exchange.
382+
/// Declare an exchange.
368383
/// </summary>
369384
/// <remarks>
370385
/// The exchange is declared non-passive, non-durable, non-autodelete, and
@@ -381,7 +396,7 @@ void ExchangeDeclareNoWait(string exchange, string type, bool durable, bool auto
381396
IDictionary<string, object> arguments);
382397

383398
/// <summary>
384-
/// (Spec method) Declare an exchange.
399+
/// Declare an exchange.
385400
/// </summary>
386401
/// <remarks>
387402
/// The exchange is declared passive.
@@ -390,12 +405,12 @@ void ExchangeDeclareNoWait(string exchange, string type, bool durable, bool auto
390405
void ExchangeDeclarePassive(string exchange);
391406

392407
/// <summary>
393-
/// (Spec method) Delete an exchange.
408+
/// Delete an exchange.
394409
/// </summary>
395410
[AmqpMethodDoNotImplement(null)]
396411
void ExchangeDelete(string exchange, bool ifUnused);
397412

398-
/// <summary>(Spec method) Delete an exchange.</summary>
413+
/// <summary>Delete an exchange.</summary>
399414
/// <remarks>
400415
/// The exchange is deleted regardless of any queue bindings.
401416
/// </remarks>
@@ -408,17 +423,27 @@ void ExchangeDeclareNoWait(string exchange, string type, bool durable, bool auto
408423
void ExchangeDeleteNoWait(string exchange, bool ifUnused);
409424

410425
/// <summary>
411-
/// (Extension method) Unbind an exchange from an exchange.
426+
/// Unbind an exchange from an exchange.
412427
/// </summary>
428+
/// <remarks>
429+
/// <para>
430+
/// Routing key must be shorter than 255 bytes.
431+
/// </para>
432+
/// </remarks>
413433
[AmqpMethodDoNotImplement(null)]
414434
void ExchangeUnbind(string destination,
415435
string source,
416436
string routingKey,
417437
IDictionary<string, object> arguments);
418438

419439
/// <summary>
420-
/// (Extension method) Unbind an exchange from an exchange.
440+
/// Unbind an exchange from an exchange.
421441
/// </summary>
442+
/// <remarks>
443+
/// <para>
444+
/// Routing key must be shorter than 255 bytes.
445+
/// </para>
446+
/// </remarks>
422447
[AmqpMethodDoNotImplement(null)]
423448
void ExchangeUnbind(string destination, string source, string routingKey);
424449

@@ -430,19 +455,34 @@ void ExchangeUnbindNoWait(string destination, string source, string routingKey,
430455
IDictionary<string, object> arguments);
431456

432457
/// <summary>
433-
/// (Spec method) Bind a queue to an exchange.
458+
/// Bind a queue to an exchange.
434459
/// </summary>
460+
/// <remarks>
461+
/// <para>
462+
/// Routing key must be shorter than 255 bytes.
463+
/// </para>
464+
/// </remarks>
435465
[AmqpMethodDoNotImplement(null)]
436466
void QueueBind(string queue, string exchange, string routingKey, IDictionary<string, object> arguments);
437467

438-
/// <summary>(Spec method) Bind a queue to an exchange.</summary>
468+
/// <summary>Bind a queue to an exchange.</summary>
469+
/// <remarks>
470+
/// <para>
471+
/// Routing key must be shorter than 255 bytes.
472+
/// </para>
473+
/// </remarks>
439474
[AmqpMethodDoNotImplement(null)]
440475
void QueueBind(string queue, string exchange, string routingKey);
441476

442477
/// <summary>Same as QueueBind but sets nowait parameter to true.</summary>
478+
/// <remarks>
479+
/// <para>
480+
/// Routing key must be shorter than 255 bytes.
481+
/// </para>
482+
/// </remarks>
443483
void QueueBindNoWait(string queue, string exchange, string routingKey, IDictionary<string, object> arguments);
444484

445-
/// <summary>(Spec method) Declare a queue.</summary>
485+
/// <summary>Declare a queue.</summary>
446486
/// <remarks>
447487
/// The queue is declared non-passive, non-durable,
448488
/// but exclusive and autodelete, with no arguments. The
@@ -451,7 +491,7 @@ void ExchangeUnbindNoWait(string destination, string source, string routingKey,
451491
[AmqpMethodDoNotImplement(null)]
452492
QueueDeclareOk QueueDeclare();
453493

454-
/// <summary>(Spec method) Declare a queue.</summary>
494+
/// <summary>Declare a queue.</summary>
455495
[AmqpMethodDoNotImplement(null)]
456496
QueueDeclareOk QueueDeclare(string queue, bool durable, bool exclusive,
457497
bool autoDelete, IDictionary<string, object> arguments);
@@ -491,7 +531,7 @@ void QueueDeclareNoWait(string queue, bool durable, bool exclusive,
491531
uint ConsumerCount(string queue);
492532

493533
/// <summary>
494-
/// (Spec method) Delete a queue.
534+
/// Delete a queue.
495535
/// </summary>
496536
/// <remarks>
497537
///Returns the number of messages purged during queue deletion.
@@ -501,7 +541,7 @@ void QueueDeclareNoWait(string queue, bool durable, bool exclusive,
501541
uint QueueDelete(string queue, bool ifUnused, bool ifEmpty);
502542

503543
/// <summary>
504-
/// (Spec method) Delete a queue.
544+
/// Delete a queue.
505545
/// </summary>
506546
/// <remarks>
507547
///Returns the number of messages purged during queue deletion.
@@ -516,7 +556,7 @@ void QueueDeclareNoWait(string queue, bool durable, bool exclusive,
516556
void QueueDeleteNoWait(string queue, bool ifUnused, bool ifEmpty);
517557

518558
/// <summary>
519-
/// (Spec method) Purge a queue of messages.
559+
/// Purge a queue of messages.
520560
/// </summary>
521561
/// <remarks>
522562
/// Returns the number of messages purged.
@@ -525,22 +565,22 @@ void QueueDeclareNoWait(string queue, bool durable, bool exclusive,
525565
uint QueuePurge(string queue);
526566

527567
/// <summary>
528-
/// (Spec method) Unbind a queue from an exchange.
568+
/// Unbind a queue from an exchange.
529569
/// </summary>
530570
void QueueUnbind(string queue, string exchange, string routingKey, IDictionary<string, object> arguments);
531571

532572
/// <summary>
533-
/// (Spec method) Commit this session's active TX transaction.
573+
/// Commit this session's active TX transaction.
534574
/// </summary>
535575
void TxCommit();
536576

537577
/// <summary>
538-
/// (Spec method) Roll back this session's active TX transaction.
578+
/// Roll back this session's active TX transaction.
539579
/// </summary>
540580
void TxRollback();
541581

542582
/// <summary>
543-
/// (Spec method) Enable TX mode for this session.
583+
/// Enable TX mode for this session.
544584
/// </summary>
545585
void TxSelect();
546586

0 commit comments

Comments
 (0)