public void Restart() { Dictionary <string, string> ps = new Dictionary <string, string>(); ps.Clear(); string adminurl = ServiceURL.Replace("/rest/", "/admin/"); Request(adminurl + ".MapServer/stop", ps); ps.Clear(); Request(adminurl + ".MapServer/start", ps); }