Ejemplo n.º 1
0
        private async Task <HttpResponseMessage> SendWithNtConnectionAuthAsync(HttpConnection connection, HttpRequestMessage request, bool doRequestAuth, CancellationToken cancellationToken)
        {
            if (doRequestAuth && Settings._credentials != null)
            {
                return(await AuthenticationHelper.SendWithNtConnectionAuthAsync(request, Settings._credentials, connection, this, cancellationToken).ConfigureAwait(false));
            }

            return(await SendWithNtProxyAuthAsync(connection, request, cancellationToken).ConfigureAwait(false));
        }