反应链接,主题多个读者 [英] Reactive link, Subject Multiple Readers

查看:63
本文介绍了反应链接,主题多个读者的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

大家好,

我正在使用来自反应链接库的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.com/questions/283403/should-i-use-one-event-multiple-subscribers-or-multiple-events-multiple-subscri

https://docs.microsoft.com/en-us/dotnet/csharp/programming-guide/events/

最诚挚的问候,

Wendy


这篇关于反应链接,主题多个读者的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆