/// <summary> /// 获取服务器进程信息 /// </summary> /// <param name="processName">进程名称</param> /// <returns></returns> public BasicResponse <PorcessInfo> GetProcessInfo(ConfigGetProcessInfoRequest request) { return(new BasicResponse <PorcessInfo>() { Data = HardwareUtils.GetProcessInfo(request.ProcessName) }); }
public BasicResponse <PorcessInfo> GetProcessInfo(ConfigGetProcessInfoRequest request) { //var responseStr = HttpClientHelper.Post(webapi + "/v1/Config/GetProcessInfo?token=" + token, JSONHelper.ToJSONString(processName)); var responseStr = HttpClientHelper.Post(Webapi + "/v1/Config/GetProcessInfo?token=" + Token, JSONHelper.ToJSONString(request)); return(JSONHelper.ParseJSONString <BasicResponse <PorcessInfo> >(responseStr)); }
public BasicResponse <PorcessInfo> GetProcessInfo(ConfigGetProcessInfoRequest request) { return(_configService.GetProcessInfo(request)); }