C# Class NuGet.ConsoleCredentialProvider

Inheritance: ICredentialProvider
Exibir arquivo Open project: themotleyfool/NuGet

Public Methods

Method Description
GetCredentials ( Uri uri, IWebProxy proxy, CredentialType credentialType, bool retrying ) : ICredentials

Private Methods

Method Description
LaunchedFromVS ( ) : bool

When running from inside VS, no input is available to our executable locking up VS. VS sets up a couple of environment variables one of which is named VisualStudioVersion. Every time this is setup, we will just fail.

ReadLineAsSecureString ( ) : SecureString

Method Details

GetCredentials() public method

public GetCredentials ( Uri uri, IWebProxy proxy, CredentialType credentialType, bool retrying ) : ICredentials
uri System.Uri
proxy IWebProxy
credentialType CredentialType
retrying bool
return ICredentials