dotnet-sdk icon indicating copy to clipboard operation
dotnet-sdk copied to clipboard

Add pub-sub subscribe examples to docs for .NET

Open paulyuk opened this issue 2 years ago • 1 comments

Describe the proposalimage

The following topics cover the publishing side in client but not really subscribing.
https://docs.dapr.io/developing-applications/sdks/dotnet/dotnet-server/dotnet-aspnet/

The following does not even include .NET https://docs.dapr.io/developing-applications/building-blocks/pubsub/howto-publish-subscribe/#step-2-subscribe-to-topics

I propose we beef up the docs to include code based and declarative pub sub subscriptions. We can leverage code like we see in the banking example:

Here is a code focused approach you can see (gRPC in this case): dotnet-sdk/BankingService.cs at master · dapr/dotnet-sdk (github.com)

Here is a more declarative binding using attributes: dotnet-sdk/SampleController.cs at master · dapr/dotnet-sdk (github.com)

paulyuk avatar Aug 30 '21 18:08 paulyuk

related: https://github.com/dapr/dotnet-sdk/pull/735

rynowak avatar Aug 31 '21 20:08 rynowak