public ExecutionMessage(ExecutionMessage executionMessage) : base(executionMessage) { Id = executionMessage.Id; this.order = executionMessage.Order; OrderId = executionMessage.OrderId; ClOrderId = executionMessage.ClOrderId; ProviderOrderId = executionMessage.ProviderOrderId; this.instrument = executionMessage.Instrument; InstrumentId = executionMessage.InstrumentId; ClientId = executionMessage.ClientId; IsLoaded = executionMessage.IsLoaded; CurrencyId = executionMessage.CurrencyId; Fields = new ObjectTable(executionMessage.Fields); }
public virtual void Save(ExecutionMessage message, int id = -1) { }
public override void Save(ExecutionMessage message, int id = -1) { DataSeries series; if (id == -1) { if (this.dataSeries == null) { int id2 = Get(this.seriesName); this.dataSeries = this.serieses[id2]; series = this.dataSeries; } else { series = this.dataSeries; } } else { series = this.serieses[id]; if (series == null) { Console.WriteLine($"FileOrderServer::Save Error. Series with id does not exist : {id}"); return; } } series.Add(message); }