/// <summary> /// 查询pfop操作处理结果(或状态) /// </summary> /// <param name="persistentId">持久化ID</param> /// <returns>操作结果</returns> public PrefopResult Prefop(string persistentId) { PrefopResult result = new PrefopResult(); string scheme = this.config.UseHttps ? "https://" : "http://"; string prefopUrl = string.Format("{0}{1}/status/get/prefop?id={2}", scheme, Config.DefaultApiHost, persistentId); HttpManager httpMgr = new HttpManager(); HttpResult httpResult = httpMgr.Get(prefopUrl, null); result.Shadow(httpResult); return(result); }
/// <summary> /// 查询pfop操作处理结果(或状态) /// </summary> /// <param name="persistentId">持久化ID</param> /// <returns>操作结果</returns> public async Task <PrefopResult> Prefop(string persistentId) { var result = new PrefopResult(); var scheme = _config.UseHttps ? "https://" : "http://"; var prefopUrl = $"{scheme}{Config.DefaultApiHost}/status/get/prefop?id={persistentId}"; var httpMgr = new HttpManager(); var httpResult = await httpMgr.GetAsync(prefopUrl); result.Shadow(httpResult); return(result); }