public ProducerObservable() { _Produder = new Producer(); _Producer.Attach(Message_Received); _Subject = new Subject <Message>(); _Producer.Start(); }
public ProducerObservable() { _Subject = new Subject <Message>(); ProducerMessageHandler fnHandler = m => _Subject.OnNext(m); _Producer = new Producer(); _Producer.Attach(fnHandler); _Producer.Start(); _Disposables = new CompositeDisposable(); _Disposables.Add(_Producer); _Disposables.Add(_Subject); }