Exemplo n.º 1
0
        private void Init()
        {
            _reader = new BinaryReader(_logStream);

            // Make sure the playback process doesn't write
            // anything into the playback stream
            _enc = new NullEncoding(_logStream);

            _loopbackServer                    = new TWSLoopbackServer(_logStream);
            _loopbackServer.Login             += new EventHandler <TWSServerEventArgs>(LoopbackServer_Login);
            _loopbackServer.MarketDataRequest +=
                new EventHandler <TWSMarketDataRequestEventArgs>(LoopbackServer_MarketDataRequest);
            _loopbackServer.MarketDepthCancel +=
                new EventHandler <TWSMarketDataCancelEventArgs>(LoopbackServer_MarketDepthCancel);
        }
Exemplo n.º 2
0
 public TWSLoopbackServer(Stream stream)
     : base(stream)
 {
     _enc = new NullEncoding(stream);
 }
Exemplo n.º 3
0
        private void Init()
        {
            _reader = new BinaryReader(_logStream);

            // Make sure the playback process doesn't write
            // anything into the playback stream
            _enc = new NullEncoding(_logStream);

            _loopbackServer = new TWSLoopbackServer(_logStream);
            _loopbackServer.Login += new EventHandler<TWSServerEventArgs>(LoopbackServer_Login);
            _loopbackServer.MarketDataRequest +=
                new EventHandler<TWSMarketDataRequestEventArgs>(LoopbackServer_MarketDataRequest);
            _loopbackServer.MarketDepthCancel +=
                new EventHandler<TWSMarketDataCancelEventArgs>(LoopbackServer_MarketDepthCancel);
        }