示例#1
0
 public static void StopServer() {
     if (_server != null) {
         _server.Stop();
         _server = null;
     }
 }
示例#2
0
 public static void StartServer(string folder) {
     if (_server == null) {
         _server = new WebServer(folder);
         _server.Start();
     }
 }