Table of Contents

Class HttpSourceAuthenticationHandler

Namespace
NuGet.Protocol
Assembly
NuGet.Protocol.dll
public class HttpSourceAuthenticationHandler : DelegatingHandler, IDisposable
Inheritance
HttpSourceAuthenticationHandler
Implements
Inherited Members
Extension Methods

Constructors

HttpSourceAuthenticationHandler(PackageSource, HttpClientHandler, ICredentialService)

public HttpSourceAuthenticationHandler(PackageSource packageSource, HttpClientHandler clientHandler, ICredentialService credentialService)

Parameters

packageSource PackageSource
clientHandler HttpClientHandler
credentialService ICredentialService

Fields

MaxAuthRetries

public static readonly int MaxAuthRetries

Field Value

int

Methods

Dispose(bool)

protected override void Dispose(bool disposing)

Parameters

disposing bool

SendAsync(HttpRequestMessage, CancellationToken)

protected override Task<HttpResponseMessage> SendAsync(HttpRequestMessage request, CancellationToken cancellationToken)

Parameters

request HttpRequestMessage
cancellationToken CancellationToken

Returns

Task<HttpResponseMessage>