public void TestSomething() { _con.ObserveCurrency() .Distinct(x => x.ToString()) .Subscribe(x => { System.Diagnostics.Debug.WriteLine("List : " + x.ToString() + " " + x.AskPrice + " " + x.BidPrice + " " + x.TimeStamp); }, () => System.Diagnostics.Debug.WriteLine("Completed")); _con.ObserveCurrency("C.GBP/USD") .Subscribe(x => { System.Diagnostics.Debug.WriteLine("All : " + x.ToString() + " " + x.AskPrice + " " + x.BidPrice + " " + x.TimeStamp); }, () => System.Diagnostics.Debug.WriteLine("Completed")); _resetEvent.Wait(TimeSpan.FromMinutes(10)); _con.Dispose(); Assert.IsTrue(true); }
public void Dispose() { _natsTransport.Dispose(); _ccyDisposable?.Dispose(); _disposable.Dispose(); }