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