Exemplo n.º 1
0
        private void UMessage(BufferArgs args)
        {
            LevelIIUpdateMessage Message;

            try {
                Message = new LevelIIUpdateMessage(args.items);
                if (htWatchEvents.ContainsKey(Message.Symbol))
                {
                    LevelIIUpdateMessageHandler mh = htWatchEvents[Message.Symbol] as LevelIIUpdateMessageHandler;
                    if (null != mh)
                    {
                        mh(this, new LevelIIUpdateMessageEventArgs(Message));
                    }
                }
            }
            catch (Exception e) {
                Console.WriteLine("IQFeedLevelII.UMessage error: " + args.Line);
                Console.WriteLine("  ** Exception {0}", e.ToString());
            }
        }
Exemplo n.º 2
0
 public LevelIIUpdateMessageEventArgs(LevelIIUpdateMessage Message)
 {
     this.Message = Message;
 }