public void StartPolling() { isStopping = false; // раздача котировок distributor = new TcpDistributor(AppConfig.GetIntParam("TCP.DistributorPort", 2771)); distributor.Start(); pollThread = new Thread(PollRoutine); pollThread.Start(); }
private QuoteDistributor() { if (!shouldDistribute) { return; } try { tcpDistributor = new TcpDistributor(AppConfig.GetIntParam("Quote.DistributionOwnPort", 2780)); tcpDistributor.Start(); } catch (Exception ex) { Logger.Error("Ошибка в QuoteDistributor() ctor", ex); throw; } minDistributeIntervalMil = AppConfig.GetIntParam("Quote.MinDistributeIntervalMil", 200); }