private void ProcessDataFeedListResponse(DataFeedListResponse response)
        {
            _DataFeeds = response.DataFeeds.ToArray();

            InvokeIfRequired(cmbL1DataFeeds, InitDataFeedControl);

            EnabledControls(true);
        }
 private void DataFeedsResponseCallback(DataFeedListResponse message)
 {
     //if (DataFeedsList != null)
     //    DataFeedsList(this, new EventArgs<ServerMess.DataFeed[]>(message.DataFeeds));
     Logger.Info("Recieved data feed from server");
     DataFeed = message.DataFeeds;
     if (DataFeed != null && DataFeed.Count() > 0)
     {
         SubscribeSymbolfromDB();
     }
     else
     {
         Logger.Error("DataFeedsResponseCallback", new Exception("DataFeed List is not available"));
     }
 }
Exemplo n.º 3
0
        private void GetDataFeedList(DataFeedListRequest aRequest)
        {
            DataFeedListResponse aResponse = new DataFeedListResponse();

            aResponse.DataFeeds = new List <DataFeed>();
            foreach (KeyValuePair <string, IDataFeed> item_pair in m_DataFeedsByName)
            {
                aResponse.DataFeeds.Add(new DataFeed
                {
                    Name      = item_pair.Value.Name,
                    Exchanges = item_pair.Value.Markets
                });
            }
            aResponse.User = aRequest.User;
            PushResponse(aResponse);
        }