system.reactive - using IObservable with unity -
I want to use Iobservable patterns to highlight the stream of events The problem is that I have both supervisor and event generator I am using unity to make I will not only raise these two for starting on the application, so I can start listening for the events. Does anyone have any suggestions about this?
After reading the reply of my comment (sorry about the delay, see my comment) I can think of two ways to solve it.
First of all, a customer comes to a customer with a IObservable
(which subscribes so far) -b- Created IObservable
source . In this way, customers can subscribe immediately, but the source will not be available until the source is created.
The second option is to create a IObservable
tasting version with ships with EventAggregator
(2.2, I have not checked 4). EventAggregator
acts as a broadcast event system, so any code can ask for a event
which can be either subscribed or published in your case In, this event will apply to ISubject
(i.e., both IObservable
and IObserver
).
Comments
Post a Comment