Beispiel #1
0
        //public DataPoint Result { get; set; }

        public void Visit(IVisitable pVisitable)
        {
            if (pVisitable is TransferMessage)
            {
                TransferMessage lMsg = pVisitable as TransferMessage;
                //Result = lMsg;
                //Result = new DataPoint() { DependentValue = lMsg.Price, SeriesName = lMsg.Item };
            }
        }
Beispiel #2
0
 public void Visit(IVisitable pVisitable)
 {
     if (pVisitable is OrderMessage)
     {
         OrderMessage orderMessage = pVisitable as OrderMessage;
         Result = new TransferMessage()
         {
             OrderGuid         = orderMessage.OrderGuid,
             Total             = orderMessage.Total,
             FromAccountNumber = orderMessage.FromAccountNumber,
             ToAccountNumber   = orderMessage.ToAccountNumber,
             Topic             = "bank"
         };
     }
 }