Skip to content

Commit cb5be1c

Browse files
Merge pull request #2387 from banitt/patch-1
Update dotnet-api-guide.md
2 parents 37909bd + 740c30a commit cb5be1c

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

client-libraries/dotnet-api-guide.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -490,8 +490,8 @@ One way to implement a consumer is to use the convenience class
490490
lifecycle events as C# events:
491491

492492
```csharp
493-
var consumer = new EventingBasicConsumer(channel);
494-
consumer.Received += async (ch, ea) =>
493+
var consumer = new AsyncEventingBasicConsumer(channel);
494+
consumer.ReceivedAsync += async (ch, ea) =>
495495
{
496496
var body = ea.Body.ToArray();
497497
// copy or deserialise the payload

0 commit comments

Comments
 (0)