public void Start() { _input = new ChannelAdapter(); ServerUri = new UriBuilder("http","localhost",_port, "klinger").Uri; _server = new HttpServer(ServerUri, new PoolFiber(), _input, new PatternMatchConnectionHandler[] { new VersionConnectionHandler(), new StatusConnectionHandler(_repo), new ImageConnectionHandler(), new CssConnectionHandler() }); _server.Start(); }
public void Start() { _input = new ChannelAdapter(); ServerUri = new UriBuilder("http", "localhost", _port, "Topshelf/" + _description.GetServiceName()).Uri; _log.InfoFormat("Loading dashboard at Uri: {0}", ServerUri); _server = new HttpServer(ServerUri, new PoolFiber(), _input, new PatternMatchConnectionHandler[] { new VersionConnectionHandler(), new StaticResourceHandler(@"\.png$", "Topshelf.Dashboard.images.", "image/png", "GET"), new StaticResourceHandler(@"\.css$", "Topshelf.Dashboard.styles.", "text/css", "GET"), new DashboardConnectionHandler(_serviceCoordinator) }); _server.Start(); }