dotnet-sdk/examples/Client/PublishSubscribe/PublishEventExample
Yash Nisar 17f849b175
Remove .NET Core 3.1 support and standardize on .NET 6 (#1045)
* Remove .NET Core 3.1 support and standardize on .NET 6

Signed-off-by: Yash Nisar <yashnisar@microsoft.com>

* Remove support for .NET 5 as well

Signed-off-by: Yash Nisar <yashnisar@microsoft.com>

---------

Signed-off-by: Yash Nisar <yashnisar@microsoft.com>
2023-08-24 11:04:02 -07:00
..
Example.cs Implement Bulk Publish functionality (#1001) 2023-01-26 11:34:09 -08:00
Program.cs Implement Bulk Publish functionality (#1001) 2023-01-26 11:34:09 -08:00
PublishBytesExample.cs Implement Bulk Publish functionality (#1001) 2023-01-26 11:34:09 -08:00
PublishEventExample.cs Implement Bulk Publish functionality (#1001) 2023-01-26 11:34:09 -08:00
PublishEventExample.csproj Remove .NET Core 3.1 support and standardize on .NET 6 (#1045) 2023-08-24 11:04:02 -07:00
README.md Implement Bulk Publish functionality (#1001) 2023-01-26 11:34:09 -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.