Show / Hide Table of Contents

Method UseHttpMessageHandler

UseHttpMessageHandler<T>(IArcGISHttpConfiguration)

Sets a delegate that will be used to create new instances of System.Net.Http.HttpMessageHandler, that will be used by ArcGIS Maps SDK for .NET to perform network requests.

Declaration
public static IArcGISHttpConfiguration UseHttpMessageHandler<T>(this IArcGISHttpConfiguration configuration)
    where T : HttpMessageHandler, new()
Parameters
Type Name Description
IArcGISHttpConfiguration configuration

HTTP Configuration

Returns
Type Description
IArcGISHttpConfiguration

HTTP Configuration

Type Parameters
Name Description
T

Specialization of System.Net.Http.HttpMessageHandler that has a default constructor.

Remarks

By default, ArcGIS Maps SDK for .NET selects an implementation that works best for the current platform. If there is a specific need to use a different handler, the following types may be used:

  • HttpClientHandler
  • SocketsHttpHandler (all .NET 6 platforms)
  • NSUrlSessionHandler (iOS and macOS only)
  • AndroidMessageHandler (Android only)
  • WebRequestHandler (.NET Framework only)
  • DelegatingHandler (InnerHandler needs to be initialized from the default constructor)

Applies to

Platforms and versions
TargetVersions
.NET Standard 2.0200.0 - 200.8
.NET200.0 - 200.8
.NET Windows200.0 - 200.8
.NET Android200.0 - 200.8
.NET iOS200.0 - 200.8
.NET Framework200.0 - 200.8
UWP200.0 - 200.8
In This Article
Back to top Copyright © 2022 Esri.