public void StartPrimedExperiment() { int count = 0; IObservable <int> ys = Observable2.StartPrimed(() => count++); Thread.Sleep(TimeSpan.FromSeconds(1)); TraceLine(Text.StartedFormat, count > 0); TraceLine(Text.Subscribing); ys.Subscribe(ConsoleOutput); Thread.Sleep(TimeSpan.FromSeconds(1)); TraceLine(Text.StartedFormat, count > 0); ys.Subscribe(ConsoleOutput); Thread.Sleep(TimeSpan.FromSeconds(1)); TraceLine(Text.GeneratedFormat, count > 1); }