反应链接,主题多个读者

编程入门 行业动态 更新时间:2024-10-25 06:30:24
本文介绍了反应链接,主题多个读者的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧! 问题描述

大家好,

我正在使用来自反应链接库的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

更多推荐

反应链接,主题多个读者

本文发布于:2023-07-17 03:38:32,感谢您对本站的认可!
本文链接:https://www.elefans.com/category/jswz/34/1129029.html
版权声明:本站内容均来自互联网,仅供演示用,请勿用于商业和其他非法用途。如果侵犯了您的权益请与我们联系,我们将在24小时内删除。
本文标签:多个   读者   链接   主题

发布评论

评论列表 (有 0 条评论)
草根站长

>www.elefans.com

编程频道|电子爱好者 - 技术资讯及电子产品介绍!