C# Класс NuGet.VisualStudio.VisualStudioCredentialProvider

Наследование: ICredentialProvider
Показать файл Открыть проект

Открытые методы

Метод Описание
GetCredentials ( Uri uri, IWebProxy proxy, CredentialType credentialType ) : ICredentials

Returns an ICredentials instance that the consumer would need in order to properly authenticate to the given Uri.

VisualStudioCredentialProvider ( ) : System
VisualStudioCredentialProvider ( IVsWebProxy webProxyService ) : System

Защищенные методы

Метод Описание
InitializeCredentialProxy ( Uri uri, IWebProxy originalProxy ) : void

THIS IS KINDA HACKISH: we are forcing the static property just so that the VsWebProxy can pick up the Uri. This method is responsible for initializing the WebRequest.DefaultWebProxy to the correct Uri based on the type of request that credentials are needed for before we prompt for credentials because the VsWebProxy uses that static property as a way to display the Uri that we are connecting to.

Приватные методы

Метод Описание
PromptForCredentials ( Uri uri ) : ICredentials

This method is responsible for retrieving either cached credentials or forcing a prompt if we need the user to give us new credentials.

Описание методов

GetCredentials() публичный Метод

Returns an ICredentials instance that the consumer would need in order to properly authenticate to the given Uri.
public GetCredentials ( Uri uri, IWebProxy proxy, CredentialType credentialType ) : ICredentials
uri System.Uri
proxy IWebProxy
credentialType CredentialType
Результат ICredentials

InitializeCredentialProxy() защищенный абстрактный Метод

THIS IS KINDA HACKISH: we are forcing the static property just so that the VsWebProxy can pick up the Uri. This method is responsible for initializing the WebRequest.DefaultWebProxy to the correct Uri based on the type of request that credentials are needed for before we prompt for credentials because the VsWebProxy uses that static property as a way to display the Uri that we are connecting to.
protected abstract InitializeCredentialProxy ( Uri uri, IWebProxy originalProxy ) : void
uri System.Uri
originalProxy IWebProxy
Результат void

VisualStudioCredentialProvider() публичный Метод

public VisualStudioCredentialProvider ( ) : System
Результат System

VisualStudioCredentialProvider() публичный Метод

public VisualStudioCredentialProvider ( IVsWebProxy webProxyService ) : System
webProxyService IVsWebProxy
Результат System