Method With
- Namespace
- MongoDB.Driver.Core.Configuration
- Assembly
- MongoDB.Driver.Core.dll
With(Optional<bool>, Optional<IEnumerable<X509Certificate>>, Optional<LocalCertificateSelectionCallback>, Optional<SslProtocols>, Optional<RemoteCertificateValidationCallback>)
Returns a new SsslStreamSettings instance with some settings changed.
public SslStreamSettings With(Optional<bool> checkCertificateRevocation = default, Optional<IEnumerable<X509Certificate>> clientCertificates = default, Optional<LocalCertificateSelectionCallback> clientCertificateSelectionCallback = default, Optional<SslProtocols> enabledProtocols = default, Optional<RemoteCertificateValidationCallback> serverCertificateValidationCallback = default)
Parameters
checkCertificateRevocation
Optional<bool>Whether to check certificate revocation.
clientCertificates
Optional<IEnumerable<X509Certificate>>The client certificates.
clientCertificateSelectionCallback
Optional<LocalCertificateSelectionCallback>The client certificate selection callback.
enabledProtocols
Optional<SslProtocols>The enabled protocols.
serverCertificateValidationCallback
Optional<RemoteCertificateValidationCallback>The server certificate validation callback.
Returns
- SslStreamSettings
A new SsslStreamSettings instance.