Skip to content

Commit 262e65a

Browse files
authored
Merge pull request #2184 from rabbitmq/rabbitmq-website-2183
Fixed tutorial-seven-dotnet.md reference line numbers
2 parents 36190f2 + 0f22fd1 commit 262e65a

File tree

1 file changed

+10
-4
lines changed

1 file changed

+10
-4
lines changed

tutorials/tutorial-seven-dotnet.md

Lines changed: 10 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -46,7 +46,7 @@ are not enabled by default. Publisher confirms are enabled at the channel level
4646
via the `CreateChannelOptions` class:
4747

4848
```csharp reference
49-
https://github.com/rabbitmq/rabbitmq-tutorials/blob/main/dotnet/PublisherConfirms/PublisherConfirms.cs#L9-L15
49+
https://github.com/rabbitmq/rabbitmq-tutorials/blob/main/dotnet/PublisherConfirms/PublisherConfirms.cs#L11-L15
5050
```
5151

5252
These options must be passed to every channel that you expect to use publisher
@@ -77,7 +77,13 @@ wait for this whole batch to be confirmed. The following example uses a batch
7777
size equal to one-half of the allowed count of outstanding confirmations:
7878

7979
```csharp reference
80-
https://github.com/rabbitmq/rabbitmq-tutorials/blob/main/dotnet/PublisherConfirms/PublisherConfirms.cs#L92-L132
80+
https://github.com/rabbitmq/rabbitmq-tutorials/blob/main/dotnet/PublisherConfirms/PublisherConfirms.cs#L90-L102
81+
```
82+
83+
This method is responsible for awaiting the publisher confirmations for a given batch of messages:
84+
85+
```csharp reference
86+
https://github.com/rabbitmq/rabbitmq-tutorials/blob/main/dotnet/PublisherConfirms/PublisherConfirms.cs#L108-L125
8187
```
8288

8389

@@ -87,7 +93,7 @@ The broker confirms published messages asynchronously, one just needs to
8793
register a callback on the client to be notified of these confirms:
8894

8995
```csharp reference
90-
https://github.com/rabbitmq/rabbitmq-tutorials/blob/main/dotnet/PublisherConfirms/PublisherConfirms.cs#L204-L227
96+
https://github.com/rabbitmq/rabbitmq-tutorials/blob/main/dotnet/PublisherConfirms/PublisherConfirms.cs#L193-L216
9197
```
9298

9399
There are 3 callbacks: one for confirmed messages, one for nack-ed messages,
@@ -117,7 +123,7 @@ clean this list when confirms arrive and do something like logging a warning
117123
when messages are nack-ed:
118124

119125
```csharp reference
120-
https://github.com/rabbitmq/rabbitmq-tutorials/blob/main/dotnet/PublisherConfirms/PublisherConfirms.cs#L155-L202
126+
https://github.com/rabbitmq/rabbitmq-tutorials/blob/main/dotnet/PublisherConfirms/PublisherConfirms.cs#L144-L191
121127
```
122128

123129
The previous sample contains a callback that cleans the linked list when

0 commit comments

Comments
 (0)