mirror of https://github.com/dapr/docs.git
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:
parent
138d46ce98
commit
451c5cfd8a
|
@ -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>();
|
||||||
|
|
Loading…
Reference in New Issue