I am trying to use reactive extensions (Rx) to create a hot observable that can be subscribed by multiple users that all get the values that are pushed to them. I can do this using subjects as below:
var subj = new Subject<int>();
var observable = subj.AsObservable();
observable.Subscribe(x => Console.WriteLine("1 Number: {0}", x));
observable.Subscribe(x => Console.WriteLine("2 Number: {0}", x));
subj.OnNext(1);
subj.OnNext(2);
subj.OnNext(3);
//and so on
but I have read that subjects are for "experimental" use and I would like to do the same thing using Observable.Create factory method. I have looked around and there are plenty of examples of creating cold observables using the Create method but I would like to have the same behavior as the code above produces.
Thanks for any help.
Nick