Exemplo n.º 1
0
 public static ITcpAgentServer Create(Action <string> msgReporter, ServerReporter stateReporter)
 {
     if (_this != null)
     {
         return(_this);
     }
     return(_this = new Server(msgReporter, stateReporter));
 }
Exemplo n.º 2
0
        private Server(Action <string> msgReporter, ServerReporter stateReporter) : base(msgReporter, ProxyType.S)
        {
            _stateReporter = stateReporter;

            _timer          = new System.Timers.Timer(1000);
            _timer.Elapsed += _timer_Elapsed;
            run();
        }
Exemplo n.º 3
0
        public IEnumerable <ServerAverageMatchesPerDayRateStat> GetTopServers(int count)
        {
            ServerReporter reporter = new ServerReporter(serverService);

            return(reporter.Build(count));
        }