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

The user agent handler.
Inheritance: System.Net.Http.DelegatingHandler
ファイルを表示 Open project: Azure/azure-powershell

Public Methods

Method Description
UserAgentHandler ( IEnumerable headerValues ) : Microsoft.Azure.Commands.ResourceManager.Cmdlets.Extensions

Initializes a new instance of the UserAgentHandler class.

Protected Methods

Method Description
SendAsync ( HttpRequestMessage request, CancellationToken cancellationToken ) : Task

Add the user agent to the outgoing request.

Method Details

SendAsync() protected method

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.
return Task

UserAgentHandler() public method

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.
return Microsoft.Azure.Commands.ResourceManager.Cmdlets.Extensions