ServiceClient<T>.WithHandler Method (ServiceClient<T>, DelegatingHandler)

 

Extends the ServiceClient with a new handler.

Namespace:   Microsoft.WindowsAzure.Common
Assembly:  Microsoft.WindowsAzure.Common (in Microsoft.WindowsAzure.Common.dll)

protected virtual T WithHandler(
	ServiceClient<T> newClient,
	DelegatingHandler handler
)

Parameters

newClient
Type: Microsoft.WindowsAzure.Common.ServiceClient<T>

The new client to extend.

handler
Type: System.Net.Http.DelegatingHandler

The handler with which the client is extended.

Return Value

Type: T

The extended client.

Return to top
Show: