How to create pub-sub model in C#?

Prabs 1 Reputation point

I have an core 3.1 console application. I need to develop pub-sub model in my application.
How to create pub-sub model in C#?
Can you share me some sample code for pub-sub model in C-Sharp code?


Microsoft Technologies based on the .NET software framework.
3,604 questions
A cross-platform toolchain for developing, building, running, and publishing .NET applications.
328 questions
An object-oriented and type-safe programming language that has its roots in the C family of languages and includes support for component-oriented programming.
10,610 questions
.NET Runtime
.NET Runtime
.NET: Microsoft Technologies based on the .NET software framework.Runtime: An environment required to run apps that aren't compiled to machine language.
1,137 questions
0 comments No comments
{count} votes

3 answers

Sort by: Most helpful
  1. Castorix31 83,101 Reputation points

  2. Evgeny Grishchenko 486 Reputation points

    Look at channels channels

    0 comments No comments

  3. Jack J Jun 24,491 Reputation points Microsoft Vendor

    @Prabs , Welcome to Microsoft Q&A, you could look at the Github to know how to create pub-sub model in .net 6 Console app.

    Hope this could help you.

    Best Regards,

    If the answer is the right solution, please click "Accept Answer" and upvote it.If you have extra questions about this answer, please click "Comment".

    Note: Please follow the steps in our documentation to enable e-mail notifications if you want to receive the related email notification for this thread.

    0 comments No comments