예제 #1
0
 public void StartPolling()
 {
     isStopping = false;
     // раздача котировок
     distributor = new TcpDistributor(AppConfig.GetIntParam("TCP.DistributorPort", 2771));
     distributor.Start();
     pollThread = new Thread(PollRoutine);
     pollThread.Start();
 }
예제 #2
0
        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);
        }