/// <summary> /// Deserialization constructor. /// </summary> public PlatformSourceOrderExecutionProvider(SerializationInfo info, StreamingContext context) : base(info, context) { _tradeEntities = (TradeEntityKeeper)info.GetValue("tradeEntities", typeof(TradeEntityKeeper)); _manager = (TradePlatformComponent)info.GetValue("manager", typeof(TradePlatformComponent)); _dataSourced = (ComponentId)info.GetValue("dataSourceId", typeof(ComponentId)); this.OperationalStateChangedEvent += new OperationalStateChangedDelegate(PlatformSourceOrderExecutionProvider_OperationalStateChangedEvent); }
public void Dispose() { if (_tradeEntities != null) { _tradeEntities.Dispose(); _tradeEntities = null; } }
/// <summary> /// Constructor. /// </summary> public PlatformSourceOrderExecutionProvider() { _tradeEntities = new TradeEntityKeeper(); this.OperationalStateChangedEvent += new OperationalStateChangedDelegate(PlatformSourceOrderExecutionProvider_OperationalStateChangedEvent); }