UseTls(IClientBuilder, StoreName, string, bool, StoreLocation, Action<TlsOptions>)
staticextension
public static IClientBuilder UseTls(this IClientBuilder builder, StoreName storeName, string subject, bool allowInvalid, StoreLocation location, Action<TlsOptions> configureOptions) Configures TLS.
Parameters
builderIClientBuilder- The builder to configure.
storeNameStoreName- The certificate store to load the certificate from.
subjectstring- The subject name for the certificate to load.
allowInvalidbool- Indicates if invalid certificates should be considered, such as self-signed certificates.
locationStoreLocation- The store location to load the certificate from.
configureOptionsAction<TlsOptions>- An Action to configure the
TlsOptions.
Returns
The builder.
