dotnet-sdk/examples/Client/PublishSubscribe
Dmitry Shmulevich 0c9d6a45c8
replaced license headers (#802)
Signed-off-by: Dmitry Shmulevich <dmitry.shmulevich@gmail.com>
2021-12-10 13:39:06 -08:00
..
Example.cs replaced license headers (#802) 2021-12-10 13:39:06 -08:00
Program.cs replaced license headers (#802) 2021-12-10 13:39:06 -08:00
PublishEventExample.cs replaced license headers (#802) 2021-12-10 13:39:06 -08:00
PublishSubscribe.csproj Update Grpc to 2.38.1 which has arm64 support (#730) 2021-08-17 13:51:38 -07:00
README.md SDK Docs (#572) 2021-02-16 22:15:33 -08:00

README.md

Dapr .NET SDK pub/sub example

Prerequisites

Running the example

To run the sample locally run this command in the DaprClient directory:

dapr run --app-id DaprClient -- dotnet run <sample number>

Running the following command will output a list of the samples included:

dapr run --app-id DaprClient -- dotnet run

Press Ctrl+C to exit, and then run the command again and provide a sample number to run the samples.

For example run this command to run the 0th sample from the list produced earlier.

dapr run --app-id DaprClient -- dotnet run 0

Publishing Pub/Sub Events

See PublishEventExample.cs for an example using the DaprClient to publish a pub/sub event.