public Task <CredentialResponse> GetAsync(Uri uri, IWebProxy proxy, CredentialRequestType type, string message, bool isRetry, bool nonInteractive, CancellationToken cancellationToken)
        {
            if (isRetry)
            {
                return(Task.FromResult(new CredentialResponse(CredentialStatus.UserCanceled)));
            }

            var credentials = _credentialManager.GetForUri(uri);

            if (credentials != null)
            {
                return(Task.FromResult(new CredentialResponse(credentials)));
            }
            return(Task.FromResult(new CredentialResponse(CredentialStatus.UserCanceled)));
        }