SocketsHttpHandlerBuilder Class
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
A builder for configuring named SocketsHttpHandler instances.
public ref class SocketsHttpHandlerBuilder
public class SocketsHttpHandlerBuilder
type SocketsHttpHandlerBuilder = class
Public Class SocketsHttpHandlerBuilder
- Inheritance
-
SocketsHttpHandlerBuilder
Constructors
SocketsHttpHandlerBuilder(IHttpClientBuilder) |
Initializes a new instance of the SocketsHttpHandlerBuilder class. |
Properties
Name |
Gets the name of SocketsHttpHandler. |
Services |
Gets services collection. |
Methods
ConfigureClientCertificate(Func<IServiceProvider,X509Certificate2>) |
Adds a delegate to set a single client certificate for all remote endpoints. |
ConfigureHandler(Action<IServiceProvider,SocketsHttpHandler>) |
Adds a delegate that will execute the action on the primary handler. |
ConfigureHandler(Action<SocketsHttpHandler>) |
Adds a delegate that will execute the action on the primary handler. |
ConfigureOptions(Action<SocketsHttpHandlerOptions>) |
Adds a delegate that will set SocketsHttpHandler as the primary HttpMessageHandler for a named Microsoft.Extensions.HttpClient and will use the delegate to configure it. |
ConfigureOptions(IConfigurationSection) |
Adds a delegate that will set SocketsHttpHandler as the primary HttpMessageHandler for a named Microsoft.Extensions.HttpClient and will use IConfigurationSection to configure it. |
DisableRemoteCertificateValidation() |
Disable verification of remote certificate on SSL/TLS connections. |