OrleansConnectionSecurityHostingExtensions.UseTls 方法
定義
重要
部分資訊涉及發行前產品,在發行之前可能會有大幅修改。 Microsoft 對此處提供的資訊,不做任何明確或隱含的瑕疵擔保。
多載
UseTls(IClientBuilder, Action<TlsOptions>)
設定 TLS。
public static Orleans.IClientBuilder UseTls (this Orleans.IClientBuilder builder, Action<Orleans.Connections.Security.TlsOptions> configureOptions);
static member UseTls : Orleans.IClientBuilder * Action<Orleans.Connections.Security.TlsOptions> -> Orleans.IClientBuilder
<Extension()>
Public Function UseTls (builder As IClientBuilder, configureOptions As Action(Of TlsOptions)) As IClientBuilder
參數
- builder
- IClientBuilder
要設定的建立器。
- configureOptions
- Action<TlsOptions>
設定 的 TlsOptions 動作。
傳回
產生器。
適用於
UseTls(IClientBuilder, X509Certificate2)
設定 TLS。
public static Orleans.IClientBuilder UseTls (this Orleans.IClientBuilder builder, System.Security.Cryptography.X509Certificates.X509Certificate2 certificate);
static member UseTls : Orleans.IClientBuilder * System.Security.Cryptography.X509Certificates.X509Certificate2 -> Orleans.IClientBuilder
<Extension()>
Public Function UseTls (builder As IClientBuilder, certificate As X509Certificate2) As IClientBuilder
參數
- builder
- IClientBuilder
要設定的建立器。
- certificate
- X509Certificate2
伺服器憑證。
傳回
產生器。
適用於
UseTls(IClientBuilder, X509Certificate2, Action<TlsOptions>)
設定 TLS。
public static Orleans.IClientBuilder UseTls (this Orleans.IClientBuilder builder, System.Security.Cryptography.X509Certificates.X509Certificate2 certificate, Action<Orleans.Connections.Security.TlsOptions> configureOptions);
static member UseTls : Orleans.IClientBuilder * System.Security.Cryptography.X509Certificates.X509Certificate2 * Action<Orleans.Connections.Security.TlsOptions> -> Orleans.IClientBuilder
<Extension()>
Public Function UseTls (builder As IClientBuilder, certificate As X509Certificate2, configureOptions As Action(Of TlsOptions)) As IClientBuilder
參數
- builder
- IClientBuilder
要設定的建立器。
- certificate
- X509Certificate2
伺服器憑證。
- configureOptions
- Action<TlsOptions>
設定 的 TlsOptions 動作。
傳回
產生器。
適用於
UseTls(IClientBuilder, StoreName, String, Boolean, StoreLocation, Action<TlsOptions>)
設定 TLS。
public static Orleans.IClientBuilder UseTls (this Orleans.IClientBuilder builder, System.Security.Cryptography.X509Certificates.StoreName storeName, string subject, bool allowInvalid, System.Security.Cryptography.X509Certificates.StoreLocation location, Action<Orleans.Connections.Security.TlsOptions> configureOptions);
static member UseTls : Orleans.IClientBuilder * System.Security.Cryptography.X509Certificates.StoreName * string * bool * System.Security.Cryptography.X509Certificates.StoreLocation * Action<Orleans.Connections.Security.TlsOptions> -> Orleans.IClientBuilder
<Extension()>
Public Function UseTls (builder As IClientBuilder, storeName As StoreName, subject As String, allowInvalid As Boolean, location As StoreLocation, configureOptions As Action(Of TlsOptions)) As IClientBuilder
參數
- builder
- IClientBuilder
要設定的建立器。
- storeName
- StoreName
要從中載入憑證的憑證存放區。
- subject
- String
要載入之憑證的主體名稱。
- allowInvalid
- Boolean
指出是否應考慮不正確憑證,例如自我簽署憑證。
- location
- StoreLocation
要從中載入憑證的存放區位置。
- configureOptions
- Action<TlsOptions>
設定 的 TlsOptions 動作。
傳回
產生器。