C# Class Microsoft.Azure.Commands.ResourceManager.Cmdlets.Handlers.UserAgentHandler

The user agent handler.
Inheritance: System.Net.Http.DelegatingHandler
Afficher le fichier Open project: Azure/azure-powershell

Méthodes publiques

Méthode Description
UserAgentHandler ( IEnumerable headerValues ) : Microsoft.Azure.Commands.ResourceManager.Cmdlets.Extensions

Initializes a new instance of the UserAgentHandler class.

Méthodes protégées

Méthode Description
SendAsync ( HttpRequestMessage request, CancellationToken cancellationToken ) : Task

Add the user agent to the outgoing request.

Method Details

SendAsync() protected méthode

Add the user agent to the outgoing request.
protected SendAsync ( HttpRequestMessage request, CancellationToken cancellationToken ) : Task
request System.Net.Http.HttpRequestMessage The HTTP request message.
cancellationToken System.Threading.CancellationToken The cancellation token.
Résultat Task

UserAgentHandler() public méthode

Initializes a new instance of the UserAgentHandler class.
public UserAgentHandler ( IEnumerable headerValues ) : Microsoft.Azure.Commands.ResourceManager.Cmdlets.Extensions
headerValues IEnumerable The product info to add as headers.
Résultat Microsoft.Azure.Commands.ResourceManager.Cmdlets.Extensions