From 5aaee9cb2b68c8cdfdf2a2dabd6d93ad669ec390 Mon Sep 17 00:00:00 2001 From: Minh Luan Quach <61050316+louisquach@users.noreply.github.com> Date: Wed, 8 Feb 2023 11:48:38 +0800 Subject: [PATCH] Update serviceinvocation-quickstart.md Signed-off-by: Minh Luan Quach <61050316+louisquach@users.noreply.github.com> --- .../quickstarts/serviceinvocation-quickstart.md | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/daprdocs/content/en/getting-started/quickstarts/serviceinvocation-quickstart.md b/daprdocs/content/en/getting-started/quickstarts/serviceinvocation-quickstart.md index 2897ec260..7fbc2a3cc 100644 --- a/daprdocs/content/en/getting-started/quickstarts/serviceinvocation-quickstart.md +++ b/daprdocs/content/en/getting-started/quickstarts/serviceinvocation-quickstart.md @@ -304,6 +304,7 @@ Run the `order-processor` service alongside a Dapr sidecar. dapr run --app-port 7001 --app-id order-processor --app-protocol http --dapr-http-port 3501 -- dotnet run ``` +Add this code block to the Program.cs file in the current directory ```csharp app.MapPost("/orders", async context => { var data = await context.Request.ReadFromJsonAsync(); @@ -334,7 +335,7 @@ Run the `checkout` service alongside a Dapr sidecar. dapr run --app-id checkout --app-protocol http --dapr-http-port 3500 -- dotnet run ``` -In the `checkout` service, you'll notice there's no need to rewrite your app code to use Dapr's service invocation. You can enable service invocation by simply adding the `dapr-app-id` header, which specifies the ID of the target service. +In the Program.cs file inside `checkout` service, you'll notice there's no need to rewrite your app code to use Dapr's service invocation. You can enable service invocation by simply adding the `dapr-app-id` header, which specifies the ID of the target service. ```csharp var client = new HttpClient();