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:
HttpClientHandlerSocketsHttpHandler(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
| Target | Versions |
|---|---|
| .NET Standard 2.0 | 200.0 - 200.8 |
| .NET | 200.0 - 200.8 |
| .NET Windows | 200.0 - 200.8 |
| .NET Android | 200.0 - 200.8 |
| .NET iOS | 200.0 - 200.8 |
| .NET Framework | 200.0 - 200.8 |
| UWP | 200.0 - 200.8 |