public void PersistStrategyObject() { Strategy strategy = new Strategy(); strategy.Name = "StockTrader"; strategy.StartDateTime = DateTime.Now; _persistRepository.AddUpdate(strategy); }
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"); } }