mirror of https://github.com/dapr/dotnet-sdk.git
parent
317aa4ff99
commit
4afe79fa1a
|
|
@ -95,6 +95,7 @@ GET http://127.0.0.1:5000/17
|
||||||
|
|
||||||
Output:
|
Output:
|
||||||
```txt
|
```txt
|
||||||
|
```txt
|
||||||
{"id":"17","balance":2}
|
{"id":"17","balance":2}
|
||||||
```
|
```
|
||||||
|
|
||||||
|
|
@ -106,11 +107,11 @@ Output:
|
||||||
|
|
||||||
On Linux, MacOS:
|
On Linux, MacOS:
|
||||||
```sh
|
```sh
|
||||||
dapr publish -t withdraw -p '{"id": "17", "amount": 15 }'
|
dapr publish -t withdraw -d '{"id": "17", "amount": 15 }'
|
||||||
```
|
```
|
||||||
On Windows:
|
On Windows:
|
||||||
```sh
|
```sh
|
||||||
dapr publish -t withdraw -p "{\"id\": \"17\", \"amount\": 15 }"
|
dapr publish -t withdraw -d "{\"id\": \"17\", \"amount\": 15 }"
|
||||||
```
|
```
|
||||||
---
|
---
|
||||||
|
|
||||||
|
|
@ -118,11 +119,11 @@ On Windows:
|
||||||
Publish events using Dapr cli:
|
Publish events using Dapr cli:
|
||||||
On Linux, MacOS:
|
On Linux, MacOS:
|
||||||
```sh
|
```sh
|
||||||
dapr publish -t deposit -p '{"id": "17", "amount": 15 }'
|
dapr publish -t deposit -d '{"id": "17", "amount": 15 }'
|
||||||
```
|
```
|
||||||
On Windows:
|
On Windows:
|
||||||
```sh
|
```sh
|
||||||
dapr publish -t deposit -p "{\"id\": \"17\", \"amount\": 15 }"
|
dapr publish -t deposit -d "{\"id\": \"17\", \"amount\": 15 }"
|
||||||
```
|
```
|
||||||
---
|
---
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -103,12 +103,12 @@ Output:
|
||||||
Publish events using Dapr cli:
|
Publish events using Dapr cli:
|
||||||
On Linux, MacOS:
|
On Linux, MacOS:
|
||||||
```sh
|
```sh
|
||||||
dapr publish -t withdraw -p '{"id": "17", "amount": 15 }'
|
dapr publish -t withdraw -d '{"id": "17", "amount": 15 }'
|
||||||
```
|
```
|
||||||
|
|
||||||
On Windows:
|
On Windows:
|
||||||
```sh
|
```sh
|
||||||
dapr publish -t withdraw -p "{\"id\": \"17\", \"amount\": 15 }"
|
dapr publish -t withdraw -d "{\"id\": \"17\", \"amount\": 15 }"
|
||||||
```
|
```
|
||||||
|
|
||||||
---
|
---
|
||||||
|
|
@ -117,11 +117,11 @@ On Windows:
|
||||||
Publish events using Dapr cli:
|
Publish events using Dapr cli:
|
||||||
On Linux, MacOS:
|
On Linux, MacOS:
|
||||||
```sh
|
```sh
|
||||||
dapr publish -t deposit -p '{"id": "17", "amount": 15 }'
|
dapr publish -t deposit -d '{"id": "17", "amount": 15 }'
|
||||||
```
|
```
|
||||||
On Windows:
|
On Windows:
|
||||||
```sh
|
```sh
|
||||||
dapr publish -t deposit -p "{\"id\": \"17\", \"amount\": 15 }"
|
dapr publish -t deposit -d "{\"id\": \"17\", \"amount\": 15 }"
|
||||||
```
|
```
|
||||||
---
|
---
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue