C# Class Microsoft.Azure.Commands.Common.Authentication.Models.RPRegistrationDelegatingHandler

Inheritance: System.Net.Http.DelegatingHandler, ICloneable
Mostrar archivo Open project: Azure/azure-powershell Class Usage Examples

Public Methods

Method Description
Clone ( ) : object
RPRegistrationDelegatingHandler ( Func createClient, Action writeDebug ) : Microsoft.Azure.Commands.ResourceManager.Common.Properties

Protected Methods

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

Private Methods

Method Description
GetProviderName ( Uri requestUri ) : string

Extract provider name from request uri such as "https://management.azure.com/subscriptions/{subscription-id}/resourceGroups/{resource-group-name}/providers/{resource-provider-name}" We analyze the uri's segments and check the index of 5 is "providers/" and return the next segment.

IsProviderNotRegistereError ( HttpResponseMessage responseMessage ) : bool

Method Details

Clone() public method

public Clone ( ) : object
return object

RPRegistrationDelegatingHandler() public method

public RPRegistrationDelegatingHandler ( Func createClient, Action writeDebug ) : Microsoft.Azure.Commands.ResourceManager.Common.Properties
createClient Func
writeDebug Action
return Microsoft.Azure.Commands.ResourceManager.Common.Properties

SendAsync() protected method

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