Esempio n. 1
0
        public Application(int port, int maxConnections, int statusInterval, string logFilePath)
        {
            _statusInterval = statusInterval;

            _reporter = new StatusReporter();
            _listener = new LocalhostSocketListener(port, maxConnections);

            _logFile   = new FileStream(logFilePath, FileMode.Create);
            _logWriter = new QueueingLogWriter(new StreamWriter(_logFile, Encoding.ASCII));
        }
Esempio n. 2
0
 public Application(int port, int maxConnections, int statusInterval, string logFilePath, NodeListManager nodeListManager)
 {
     _statusInterval  = statusInterval;
     _listener        = new LocalhostSocketListener(port, maxConnections);
     _nodeListManager = nodeListManager;
 }