Beispiel #1
0
        // **********************************************************************

        void RefreshTick(object sender, EventArgs e)
        {
            if (MsgQueue.Length > 0)
            {
                MsgQueue.Process();
            }

            if (SpreadsQueue.Length > 0)
            {
                SpreadsQueue.Process();
            }

            if (TicksQueue.Length > 0)
            {
                TicksQueue.Process();
            }

            if (SettingsQueue.Length > 0)
            {
                SettingsQueue.Process();
            }

            if (TradesQueue.Length > 0)
            {
                TradesQueue.Process();
            }

            if (OrdersList.QueueLength > 0)
            {
                OrdersList.UpdateHandlers();
            }
        }
Beispiel #2
0
        // **********************************************************************

        public void PutSetting(Setting setting)
        {
            SettingsQueue.Enqueue(setting);
        }