dapr / dapr/dotnet-sdk

Add pub-sub subscribe examples to docs for .NET

Open
#744 1 comment 0 reactions 0 assignees View on GitHub
Dominant language
C#
Stars
1.2k
Forks
378
Avg merge
1d 22h
Merged PRs (30d)
5

Description

## 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)

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.