Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Where is ISubject?

I don't have ISubject, Subject class in my VS2012 with Net4.5. Did they became obselete? Should I use only IObservable and IObserver? If not how can I get them?

like image 970
Dork Avatar asked Apr 16 '26 06:04

Dork


1 Answers

In Rx 1.x, ISubject is defined in the System.Reactive assembly, so you'll need to add a reference to that.

In Rx 2.x, ISubject is defined in the System.Reactive.Interfaces assembly (Rx-Interfaces NuGet package) and Subject<T> is defined in the System.Reactive.Linq assembly (Rx-Linq NuGet package). You can just add a reference to Rx-Linq as it has a dependency on Rx-Interfaces.

like image 90
Richard Szalay Avatar answered Apr 18 '26 19:04

Richard Szalay



Donate For Us

If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!