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)); }
public Application(int port, int maxConnections, int statusInterval, string logFilePath, NodeListManager nodeListManager) { _statusInterval = statusInterval; _listener = new LocalhostSocketListener(port, maxConnections); _nodeListManager = nodeListManager; }