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)
Syntax
protected virtual T WithHandler(
ServiceClient<T> newClient,
DelegatingHandler handler
)
protected:
virtual T WithHandler(
ServiceClient<T>^ newClient,
DelegatingHandler^ handler
)
abstract WithHandler :
newClient:ServiceClient<'T> *
handler:DelegatingHandler -> 'T
override WithHandler :
newClient:ServiceClient<'T> *
handler:DelegatingHandler -> 'T
Protected Overridable Function WithHandler (
newClient As ServiceClient(Of T),
handler As DelegatingHandler
) As T
Parameters
newClient
Type: Microsoft.WindowsAzure.Common.ServiceClient<T>The new client to extend.
handler
Type: System.Net.Http.DelegatingHandlerThe handler with which the client is extended.
Return Value
Type: T
The extended client.
See Also
WithHandler Overload
ServiceClient<T> Class
Microsoft.WindowsAzure.Common Namespace
Return to top