Ejemplo n.º 1
0
        public void PersistStrategyObject()
        {
            Strategy strategy = new Strategy();

            strategy.Name          = "StockTrader";
            strategy.StartDateTime = DateTime.Now;
            _persistRepository.AddUpdate(strategy);
        }
Ejemplo n.º 2
0
 public void OnNext(byte[] data, long sequence, bool endOfBatch)
 {
     try
     {
         object obj = StreamConversion.ByteArrayToObject(data);
         _persistRepository.AddUpdate(obj);
     }
     catch (Exception exception)
     {
         Logger.Error(exception, _type.FullName, "OnNext");
     }
 }