You can use WCF (Design Patterns: List-Based Publish-Subscribe or articles like WCF With Publisher and Subscriber Pattern: Part 1)
or MessageQueue
How to create pub-sub model in C#?
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
3 answers
Sort by: Most helpful
-
Castorix31 81,746 Reputation points
2022-11-29T07:45:45.253+00:00 -
Evgeny Grishchenko 486 Reputation points
2022-11-29T20:31:22.987+00:00 Look at channels channels
-
Jack J Jun 24,296 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.