Skip to content

Commit b806d39

Browse files
committed
Merge remote-tracking branch 'gh-2183/main' into rabbitmq-website-2183
2 parents 36190f2 + 3cd9b2a commit b806d39

File tree

1 file changed

+9
-3
lines changed

1 file changed

+9
-3
lines changed

tutorials/tutorial-seven-dotnet.md

Lines changed: 9 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -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+
The `MaybeAwaitPublishes()` method is responsible for publishing 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)