public StringActionResult FileMD5(string fileName, string id, string scope) { var url = GetUrl( Action.md5, fileName, id, scope); using (var response = SendHttpRequest(url)) { var result = new StringActionResult(CheckResponseStatusCode(response)); if (result.Status == ActionStatus.Error) { return(result); } result.Value = ReadTextResponse(response); return(result); } }
public StringActionResult FileMD5(string fileName, string id, string scope) { var url = GetUrl( Action.md5, fileName, id, scope); using(var response = SendHttpRequest(url)) { var result = new StringActionResult(CheckResponseStatusCode(response)); if (result.Status == ActionStatus.Error) return result; result.Value = ReadTextResponse(response); return result; } }