dotnet-sdk/samples/Client/DaprClient
Aman Bhardwaj 7cdc62c597
Updating client sample readme
2020-03-13 09:54:55 -07:00
..
DaprClient.csproj Adding & enhancing client apis over gRPC (#244) 2020-03-09 20:52:12 -07:00
Program.cs Adding & enhancing client apis over gRPC (#244) 2020-03-09 20:52:12 -07:00
Readme.md Updating client sample readme 2020-03-13 09:54:55 -07:00

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!