Update daprdocs/content/en/getting-started/quickstarts/serviceinvocation-quickstart.md

Signed-off-by: Hannah Hunter <94493363+hhunter-ms@users.noreply.github.com>
This commit is contained in:
Hannah Hunter 2023-02-14 11:59:13 -06:00 committed by GitHub
parent 138d46ce98
commit 451c5cfd8a
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 1 deletions

View File

@ -304,7 +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 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 Below is the working code block from the order processor's `Program.cs` file.
```csharp ```csharp
app.MapPost("/orders", async context => { app.MapPost("/orders", async context => {
var data = await context.Request.ReadFromJsonAsync<Order>(); var data = await context.Request.ReadFromJsonAsync<Order>();