From f717cbd5f4d2d16fe1f830975d3862f210a1ecb8 Mon Sep 17 00:00:00 2001 From: Sergey Galichkin Date: Fri, 21 Feb 2025 12:38:27 +0000 Subject: [PATCH] Update doxygen.md Update doxygen.md to mention that Vhost object must outlive Producer/Consumer objects Signed-off-by: Sergey Galichkin --- docs/doxygen.md | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/docs/doxygen.md b/docs/doxygen.md index 8e97d87c..6e351225 100644 --- a/docs/doxygen.md +++ b/docs/doxygen.md @@ -18,7 +18,7 @@ Metric publisher is used to publish internal library metrics. Users can provide Error callback is called when a connection or channel is closed by the RabbitMQ broker. -Important -- `RabbitContext` object must outlive other library objects (`VHost`, `Producer`, `Consumer`). +**Important** -- `RabbitContext` object **must outlive** other library objects (`VHost`, `Producer`, `Consumer`). ```cpp @@ -51,6 +51,7 @@ bsl::shared_ptr vhost = context.createVHostConnection( Creating a `rmqa::VHost` instance **does not** immediately create a connection with the RabbitMQ broker. These connections are created lazily when calling `rmqa::VHost::createProducer` and `rmqa::VHost::createConsumer`. +**Important** -- `VHost` object **must outlive** other library objects (`Producer`, `Consumer`). ## Topology