C# 클래스 NuGet.Samples.VisualStudioCredentialProvider.SampleCredentialProvider

상속: IVsCredentialProvider
파일 보기 프로젝트 열기: NuGet/Samples

공개 메소드들

메소드 설명
GetCredentialsAsync ( Uri uri, IWebProxy proxy, bool isProxyRequest, bool isRetry, bool nonInteractive, CancellationToken cancellationToken ) : Task

Get credentials for the supplied package source Uri.

비공개 메소드들

메소드 설명
Authenticate ( Uri uri ) : Task
ForceHttps ( Uri uri ) : Uri

메소드 상세

GetCredentialsAsync() 공개 메소드

Get credentials for the supplied package source Uri.
public GetCredentialsAsync ( Uri uri, IWebProxy proxy, bool isProxyRequest, bool isRetry, bool nonInteractive, CancellationToken cancellationToken ) : Task
uri System.Uri The NuGet package source Uri for which credentials are being requested.
proxy IWebProxy Web proxy to use when comunicating on the network. Null if there is no proxy /// authentication configured.
isProxyRequest bool True if this request is to get proxy authentication /// credentials. If the credential provider does not support acquiring proxy credentials, then /// null should be returned.
isRetry bool True if credentials were previously acquired for this uri, but /// the supplied credentials did not allow authorized access.
nonInteractive bool If true, then interactive prompts must not be allowed.
cancellationToken System.Threading.CancellationToken This cancellation token should be checked to determine if the /// operation requesting credentials has been cancelled.
리턴 Task