Beispiel #1
0
 public void Join(SecurityCollection s)
 {
     foreach (var item in s.Securities)
     {
         if (this.Securities.ContainsKey(item.Key))
         {
             this.Securities[item.Key].Join(item.Value);
         }
         else
         {
             this.Securities.Add(item.Key, item.Value);
         }
     }
 }
Beispiel #2
0
 public Response(Event e)
     : base(e)
 {
     foreach (Message msg in e)
     {
         if (msg.HasElement(RESPONSE_ERROR))
         {
             //Errors.Add(msg.GetElement(RESPONSE_ERROR));
             Errors.Add(Parser.ErrorElement(this, "Response Error", msg.GetElement(RESPONSE_ERROR)));
             continue;
         }
         //Collections.Add(new SecurityCollection(msg.GetElement(SECURITY_DATA)));
         Collection = new SecurityCollection(msg.GetElement(SECURITY_DATA));
     }
 }
Beispiel #3
0
 private Subscribe(Event e)
     : base(e)
 {
     Collection = new SecurityCollection(e);
 }