Пример #1
0
        public async Task <byte[]> GetByteArrayAsync(string uri, BaseParameter param)
        {
            var paramStr = param.ToUriParam();

            paramStr += "&key=" + _options.CurrentValue.Key;
            return(await _client.GetByteArrayAsync($"{uri}?{paramStr}").ConfigureAwait(false));
        }
Пример #2
0
        public async Task <string> GetAsync(string uri, BaseParameter param)
        {
            if (param == null)
            {
                return(string.Empty);
            }

            var paramStr = param.ToUriParam();

            paramStr += "&key=" + _options.CurrentValue.Key;
            return(await _client.GetStringAsync($"{uri}?{paramStr}").ConfigureAwait(false));
        }