So I keep reading everywhere that use of Subject
is \"bad\" - and I kind of agree with the reasoning.
However, I am trying to think of the best way
A simple way to enter the observable is via an Action
private Action _action;
Create the observable
public IObservable GetObservable()
{
return Observable.FromEvent>(
ev => _action += ev,
ev => _action -= ev);
}
Then add to the observable using
public void OnNext(ObservableArgs args)
{
_action?.Invoke(args);
}