How to create pub-sub model in C#?

Prabs 1 Reputation point
2022-11-29T07:09:26.193+00:00

Hi,
I have an C#.net 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?

Regards,
Prabs

.NET
.NET
Microsoft Technologies based on the .NET software framework.
3,604 questions
.NET CLI
.NET CLI
A cross-platform toolchain for developing, building, running, and publishing .NET applications.
328 questions
C#
C#
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
    2022-11-29T07:45:45.253+00:00

  2. Evgeny Grishchenko 486 Reputation points
    2022-11-29T20:31:22.987+00:00

    Look at channels channels

    0 comments No comments

  3. Jack J Jun 24,491 Reputation points Microsoft Vendor
    2022-12-03T07:02:50.267+00:00

    @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,
    Jack


    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