Beispiel #1
0
        protected void UpdateRTD(string qkey, string subelem, string value)
        {
            // The RTD server doesn't necessarily exist. If no cell calls
            // s2sub( ) it won't be instanced by Excel.
            RTDServer rtd = RTDServer.GetInstance( );

            if (rtd == null)
            {
                return;
            }
            string stopic = String.Format("quandl.{0}.{1}", qkey, subelem);

            rtd.CacheUpdate(stopic, value);
        }
Beispiel #2
0
        void MessageReceived(object sender, MessageReceivedEventArgs e)
        {
            List <SSWebCell> updates = JsonConvert.DeserializeObject <List <SSWebCell> >(e.Message);

            Logr.Log(String.Format("MessageReceived: updates.Count({0})", updates.Count));
            if (updates.Count == 0)
            {
                return;
            }
            RTDServer rtd = RTDServer.GetInstance( );

            if (rtd != null)
            {
                rtd.CacheUpdateBatch(String.Format("websock.{0}", m_Key), updates);
            }
            s_Cache.UpdateWSCache(m_Key, updates);
        }