Пример #1
0
        /// <summary>
        ///     listen to all obs, for make all properties updated
        /// </summary>
        private void SubscribeWebSocket()
        {
            //subscribe profile
            HttpClient.ProfileObservable()
            .Merge(WsClient.ProfileObservable())
            .DistinctUntilChanged()
            .Where(x => x != null)
            .Subscribe(x => Profile = x);

            //subscribe for instrument updated
            WsClient.InstrumentResultSetObservable
            .Subscribe(x => Instruments = x);
        }