C# Class Microsoft.WindowsAzure.Commands.Common.CmdletInfoHandler

A delegating handler that writes the current cmdlet info into request headers.
Inheritance: System.Net.Http.DelegatingHandler, ICloneable
Show file Open project: Azure/azure-powershell

Public Methods

Method Description
Clone ( ) : object
CmdletInfoHandler ( string cmdlet, string parameterSet, string clientRequestId ) : System

Initializes an instance of a CmdletInfoHandler with the name of the cmdlet and the parameter set.

Protected Methods

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

Method Details

Clone() public method

public Clone ( ) : object
return object

CmdletInfoHandler() public method

Initializes an instance of a CmdletInfoHandler with the name of the cmdlet and the parameter set.
public CmdletInfoHandler ( string cmdlet, string parameterSet, string clientRequestId ) : System
cmdlet string the name of the cmdlet
parameterSet string the name of the parameter set specified by user
clientRequestId string the unique clientRequestId
return System

SendAsync() protected method

protected SendAsync ( HttpRequestMessage request, CancellationToken cancellationToken ) : Task
request System.Net.Http.HttpRequestMessage
cancellationToken System.Threading.CancellationToken
return Task