Method WithTlsNegotiator
WithTlsNegotiator(ITlsNegotiator)
Sets a custom ITlsNegotiator to use when establishing a TLS connection. Note that this overrides the default TLS negotiator, which handles certificate-based trust, so if you use this method you should implement certificate validation yourself.
public ConfigBuilder WithTlsNegotiator(ITlsNegotiator tlsNegotiator)
Parameters
tlsNegotiatorITlsNegotiatorThe ITlsNegotiator to use.
Returns
- ConfigBuilder
A ConfigBuilder instance for further configuration options.
WithTlsNegotiator(NegotiateTlsDelegate)
Sets the custom NegotiateTlsDelegate to call when establishing a TLS connection.
public ConfigBuilder WithTlsNegotiator(NegotiateTlsDelegate negotiateTls)
Parameters
negotiateTlsNegotiateTlsDelegateThe NegotiateTlsDelegate to use.
Returns
- ConfigBuilder
A ConfigBuilder instance for further configuration options.
WithTlsNegotiator<T>()
Sets the type of custom ITlsNegotiator to use when establishing a TLS connection. Note that this overrides the default TLS negotiator, which handles certificate-based trust, so if you use this method you should implement certificate validation yourself.
public ConfigBuilder WithTlsNegotiator<T>() where T : ITlsNegotiator, new()
Returns
- ConfigBuilder
A ConfigBuilder instance for further configuration options.
Type Parameters
TThe ITlsNegotiator to use.