public static void StopServer() { if (_server != null) { _server.Stop(); _server = null; } }
public static void StartServer(string folder) { if (_server == null) { _server = new WebServer(folder); _server.Start(); } }