public void Stop() { Try.Catch(() => { server?.Stop(); server = null; }); }
public void Start() { server = new WebServer(cfg.httpPort, cfg.httpsPort); server.Start(); }