From 339a2d4c294819331c73736048f26cd7f7a2c509 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Henrik=20Karstr=C3=B6m?= Date: Tue, 2 Jan 2024 09:59:35 +0100 Subject: [PATCH] Fix example dotnet-actors-howto.md MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Fix example output to not repeat "Success" Signed-off-by: Henrik Karström --- .../en/dotnet-sdk-docs/dotnet-actors/dotnet-actors-howto.md | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/daprdocs/content/en/dotnet-sdk-docs/dotnet-actors/dotnet-actors-howto.md b/daprdocs/content/en/dotnet-sdk-docs/dotnet-actors/dotnet-actors-howto.md index ab41c3917..fdff16ffc 100644 --- a/daprdocs/content/en/dotnet-sdk-docs/dotnet-actors/dotnet-actors-howto.md +++ b/daprdocs/content/en/dotnet-sdk-docs/dotnet-actors/dotnet-actors-howto.md @@ -394,7 +394,7 @@ namespace MyActorClient Console.WriteLine($"Calling GetDataAsync on {actorType}:{actorId}..."); var savedData = await proxy.GetDataAsync(); - Console.WriteLine($"Got response: {response}"); + Console.WriteLine($"Got response: {savedData}"); } } } @@ -458,7 +458,7 @@ The projects that you've created can now to test the sample. Calling SetDataAsync on MyActor:1... Got response: Success Calling GetDataAsync on MyActor:1... - Got response: Success + Got response: PropertyA: ValueA, PropertyB: ValueB ``` > đŸ’¡ This sample relies on a few assumptions. The default listening port for an ASP.NET Core web project is 5000, which is being passed to `dapr run` as `--app-port 5000`. The default HTTP port for the Dapr sidecar is 3500. We're telling the sidecar for `MyActorService` to use 3500 so that `MyActorClient` can rely on the default value.