大家好,
我正在使用来自反应链接库的Subject类,如下所示。订阅方法是否可以有多个读者。 ?
I am using Subject class from reactive link library as follows. Is it possible to have multiple readers for the subscribe method. ?
我找不到任何超载,需要多少读者。
I could not find any overload which takes number of readers.
受试对象; BinaryMessage> eventMessage = null;
Subject<BinaryMessage> eventMessage = null;
谢谢
推荐答案
嗨 GKS001,
感谢您在此发帖。
对于你的问题,我无法测试代码。如果你想使用 一个有多个订阅者的活动,你可以参考下面的链接。
For your question, I could not test the code. If you want to use one event with multiple subscribers, you could refer to the link below.
https://开头softwareengineering.stackexchange/questions/283403/should-i-use-one-event-multiple-subscribers-or-multiple-events-multiple-subscri 的
docs.microsoft/en-us/dotnet/csharp/programming-guide/events/
最诚挚的问候,
Wendy
更多推荐
反应链接,主题多个读者
发布评论