Ejemplo n.º 1
0
 public void Start()
 {
     var failHandler = new ScriptFailHandler(_storage);
     _poller = new EventPolling(getDelay(), failHandler);
     _poller.Start();
     _reporter = new HttpReporter(_poller, getPort(), getRefresh(), getStyleSheet(), failHandler);
     _reporter.Start();
 }
Ejemplo n.º 2
0
 public HttpReporter(EventPolling state, int port, int refreshPeriod, string styleSheet, ScriptFailHandler failHandler)
 {
     _state = state;
     _failHandler = failHandler;
     _port = port;
     _refreshPeriod = refreshPeriod;
     _server = new HttpServer(Environment.ProcessorCount);
     _server.ProcessRequest += handleRequest;
     _styleSheet = styleSheet;
 }