void InitializeDefaultCredentialProvider()
        {
            var credentialService = new CredentialService(
                GetCredentialProviders(),
                nonInteractive: false);

            HttpHandlerResourceV3Extensions.InitializeHttpHandlerResourceV3(credentialService);
        }
Ejemplo n.º 2
0
        void InitializeDefaultCredentialProvider()
        {
            var credentialService = new CredentialService(
                GetCredentialProviders(),
                OnError,
                nonInteractive: false);

            NuGet.HttpClient.DefaultCredentialProvider = new CredentialServiceAdapter(credentialService);

            HttpHandlerResourceV3Extensions.InitializeHttpHandlerResourceV3(credentialService);
        }