diff --git a/tutorials/pub-sub/README.md b/tutorials/pub-sub/README.md index 1f73c088..5828ca4d 100644 --- a/tutorials/pub-sub/README.md +++ b/tutorials/pub-sub/README.md @@ -167,9 +167,9 @@ dotnet build name: Run csharp subscriber expected_stdout_lines: - "You're up and running! Both Dapr and your app logs will appear here." - - '== APP == A: Message on A' - - '== APP == B: Message on B' - - '== APP == C: Message on C' + - '== APP == A: Message on A' + - '== APP == B: Message on B' + - '== APP == C: Message on C' - "Exited Dapr successfully" - "Exited App successfully" expected_stderr_lines: @@ -503,9 +503,12 @@ kubectl logs --selector app=python-subscriber -c python-subscriber ```bash diff --git a/tutorials/pub-sub/csharp-subscriber/Program.cs b/tutorials/pub-sub/csharp-subscriber/Program.cs index 72ba8267..891c4606 100644 --- a/tutorials/pub-sub/csharp-subscriber/Program.cs +++ b/tutorials/pub-sub/csharp-subscriber/Program.cs @@ -10,17 +10,17 @@ app.UseCloudEvents(); app.MapSubscribeHandler(); app.MapPost("/A", [Topic("pubsub", "A")] (ILogger logger, MessageEvent item) => { - logger.LogInformation($"{item.MessageType}: {item.Message}"); + Console.WriteLine($"{item.MessageType}: {item.Message}"); return Results.Ok(); }); app.MapPost("/B", [Topic("pubsub", "B")] (ILogger logger, MessageEvent item) => { - logger.LogInformation($"{item.MessageType}: {item.Message}"); + Console.WriteLine($"{item.MessageType}: {item.Message}"); return Results.Ok(); }); app.MapPost("/C", [Topic("pubsub", "C")] (ILogger logger, Dictionary item) => { - logger.LogInformation($"{item["messageType"]}: {item["message"]}"); + Console.WriteLine($"{item["messageType"]}: {item["message"]}"); return Results.Ok(); });