We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent b99a68c commit b598c82Copy full SHA for b598c82
tutorials/tutorial-two-dotnet.md
@@ -103,8 +103,10 @@ time:
103
104
```csharp
105
var consumer = new AsyncEventingBasicConsumer(channel);
106
-consumer.Received += async (model, ea) =>
+consumer.ReceivedAsync += async (model, ea) =>
107
{
108
+ var body = ea.Body.ToArray();
109
+ var message = Encoding.UTF8.GetString(body);
110
Console.WriteLine($" [x] Received {message}");
111
112
int dots = message.Split('.').Length - 1;
0 commit comments