Skip to content

Commit b598c82

Browse files
committed
fix: code error
1 parent b99a68c commit b598c82

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

tutorials/tutorial-two-dotnet.md

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -103,8 +103,10 @@ time:
103103

104104
```csharp
105105
var consumer = new AsyncEventingBasicConsumer(channel);
106-
consumer.Received += async (model, ea) =>
106+
consumer.ReceivedAsync += async (model, ea) =>
107107
{
108+
var body = ea.Body.ToArray();
109+
var message = Encoding.UTF8.GetString(body);
108110
Console.WriteLine($" [x] Received {message}");
109111

110112
int dots = message.Split('.').Length - 1;

0 commit comments

Comments
 (0)