dotnet-sdk
dotnet-sdk copied to clipboard
Add pub-sub subscribe examples to docs for .NET
Describe the proposal![image](https://user-images.githubusercontent.com/1968137/131386095-bef93fc9-a2e7-4e81-b39c-3a8d49efd915.png)
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)
related: https://github.com/dapr/dotnet-sdk/pull/735