Example #1
0
 public IQFeedEventArgs(IQFeedStatusTypes statusType, string message)
 {
     this.iqFeedStatus = statusType;
     this.iqFeedMessage = message;
 }
Example #2
0
        private void iqFeedCallBackHandler(int value1, int value2)
        {
            switch (value1)
            {
                case 0:
                    if (value2 == 0)
                    {
                        IQFeedStatus = IQFeedStatusTypes.ConnectionOK;
                    }
                    else if (value2 == 1)
                    {
                        IQFeedStatus = IQFeedStatusTypes.LoginFailed;
                    }
                    break;

                case 1:
                    if (value2 == 0)
                    {
                        IQFeedStatus = IQFeedStatusTypes.Offline;
                    }
                    else if (value2 == 1)
                    {
                        IQFeedStatus = IQFeedStatusTypes.Terminating;
                    }
                    break;
            }
            _registerDone.Set();
        }