Example #1
0
        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);
            }
        }
Example #2
0
        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;
            }
        }