//========================================================================================================== //============================== PUBLIC METHODS ============================================================ //========================================================================================================== /// <summary> /// Call from CCommunicator /// </summary> /// <param name="kernelTerminal"></param> /// <param name="childWinDataUpdater"></param> /// <param name="authResponse"></param> /// <param name="connId"></param> public CDataReciever(CKernelTerminal kernelTerminal, IChildWinDataUpdater childWinDataUpdater, AuthResponseEventHandler authResponse, int connId) { _kernelTerminal = kernelTerminal; _childWinDataUpdater = childWinDataUpdater; AuthResponse = authResponse; _connId = connId; OutpListAggrDeals = new Dictionary <string, List <CDealClass> >();// List<CDealClass>(); OutpListRawDeals = new Dictionary <string, List <CDealClass> >(); //2018-04-23 _logger = new CLogger("DataReciever"); _terminalViewModel = _kernelTerminal.ViewModelDispatcher.TerminalViewModel; _messenger = new CMessenger(); _dbg = new DBGDataRcvr(isOn: _kernelTerminal.GlobalConfig.DebugStocks); }
public MockTradeManagerServer() { Messenger = new CMessenger(); DBCommunicator = new CDBCommunicator("atfs", this); StockExchId = 1; }