Ejemplo n.º 1
0
        public virtual async Task <HttpResponseMessage> GetAsync(
            string path,
            Cookie authCookie,
            IServiceUriBuilder serviceUriBuilder
            )
        {
            if (string.IsNullOrWhiteSpace(path))
            {
                throw new ArgumentNullException(path);
            }

            SetCookie(authCookie);

            var uri = serviceUriBuilder.FromPath(path, Configuration, _apiVersionProvider);

            return(await _client.GetAsync(uri));
        }