Ejemplo n.º 1
0
 public LeechServer(LeechPipeServerSocket socket)
 {
     _tickPipeServer = null;
     _core           = new LpCore(socket, true); // сервер
     _pipeFactory    = new LeechServerPipeFactory(_core);
     _sysPipe        = new SystemLp(_pipeFactory, _core);
     _core.Initialize(_sysPipe, "Pulxer", false);
 }
Ejemplo n.º 2
0
 public LpClientApp(DataProtect dataProtect, IInstrumTable instrumTable,
                    IAccountTable accountTable, IStopOrderTable stopOrderTable, IOrderTable orderTable, ITradeTable tradeTable,
                    ICashTable positionTable, IHoldingTable holdingTable, ITickDispatcher tickDisp, ILogger logger)
 {
     _dataProtect = dataProtect;
     _socket      = new LpClientSocket();
     _core        = new LpCore(_socket, false); // клиент
     _pipeFactory = new LpAppFactory(_core, instrumTable, accountTable, stopOrderTable, orderTable, tradeTable, positionTable, holdingTable, tickDisp);
     _sysPipe     = new SystemLp(_pipeFactory, _core);
     _logger      = logger;
 }