本文介绍了Publish()不起作用的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

只接受一个参数(同质类型主题)的Publish()版本没有实现它所假设的语义。我查看了代码(在ILSpy的帮助下),结果发现这个版本的Publish只是将主题
订阅到源RIGHT AWAY,然后返回subject.AsObservable()。
The version of Publish() that takes just one argument (homogeneously-typed subject) doesn't implement it's supposed semantics. I've looked into the code (with some help from ILSpy), and it turns out that this version of Publish simply subscribes the subject to the source RIGHT AWAY, and then returns subject.AsObservable().

推荐答案


这篇关于Publish()不起作用的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!

10-27 09:43