mirror of https://github.com/dapr/dotnet-sdk.git
|
|
||
|---|---|---|
| .. | ||
| DaprClient.csproj | ||
| Program.cs | ||
| Readme.md | ||
Readme.md
Dapr Client Sample
The client sample shows how to make Dapr calls to publish events, save state, get state and delete state using a Dapr client apis.
Prerequistes
Running the Sample
To run the sample locally run this command in GrpcClient directory:
dapr run --app-id gRPC_Client dotnet run
Above command will run Dapr runtime and launch the app and will show logs both form Dapr runtime and the application. The client app will make calls to Dapr runtime to publish events, save state, get state and delete state using the gRPC client. Logs form application will show following in the command window:
Published Event!
Saved State!
Got State: my data
Deleted State!