ClientBuilderExtensions.UseConnectionRetryFilter 方法
定義
重要
部分資訊涉及發行前產品,在發行之前可能會有大幅修改。 Microsoft 對此處提供的資訊,不做任何明確或隱含的瑕疵擔保。
多載
UseConnectionRetryFilter(IClientBuilder, IClientConnectionRetryFilter) |
將提供的委派設定為連線重試篩選準則,以用來判斷在失敗之後是否應該重試與一開始連線。 |
UseConnectionRetryFilter(IClientBuilder, Func<Exception,CancellationToken,Task<Boolean>>) |
將提供的委派設定為連線重試篩選準則,以用來判斷在失敗之後是否應該重試與一開始連線。 |
UseConnectionRetryFilter<TConnectionRetryFilter>(IClientBuilder) |
將提供的 |
UseConnectionRetryFilter(IClientBuilder, IClientConnectionRetryFilter)
將提供的委派設定為連線重試篩選準則,以用來判斷在失敗之後是否應該重試與一開始連線。
public static Orleans.Hosting.IClientBuilder UseConnectionRetryFilter (this Orleans.Hosting.IClientBuilder builder, Orleans.IClientConnectionRetryFilter connectionRetryFilter);
static member UseConnectionRetryFilter : Orleans.Hosting.IClientBuilder * Orleans.IClientConnectionRetryFilter -> Orleans.Hosting.IClientBuilder
<Extension()>
Public Function UseConnectionRetryFilter (builder As IClientBuilder, connectionRetryFilter As IClientConnectionRetryFilter) As IClientBuilder
參數
- builder
- IClientBuilder
主機產生器。
- connectionRetryFilter
- IClientConnectionRetryFilter
連線重試篩選準則。
傳回
用於鏈結的相同 IClientBuilder 執行個體。
適用於
UseConnectionRetryFilter(IClientBuilder, Func<Exception,CancellationToken,Task<Boolean>>)
將提供的委派設定為連線重試篩選準則,以用來判斷在失敗之後是否應該重試與一開始連線。
public static Orleans.Hosting.IClientBuilder UseConnectionRetryFilter (this Orleans.Hosting.IClientBuilder builder, Func<Exception,System.Threading.CancellationToken,System.Threading.Tasks.Task<bool>> connectionRetryFilter);
static member UseConnectionRetryFilter : Orleans.Hosting.IClientBuilder * Func<Exception, System.Threading.CancellationToken, System.Threading.Tasks.Task<bool>> -> Orleans.Hosting.IClientBuilder
<Extension()>
Public Function UseConnectionRetryFilter (builder As IClientBuilder, connectionRetryFilter As Func(Of Exception, CancellationToken, Task(Of Boolean))) As IClientBuilder
參數
- builder
- IClientBuilder
主機產生器。
- connectionRetryFilter
- Func<Exception,CancellationToken,Task<Boolean>>
連線重試篩選準則。
傳回
用於鏈結的相同 IClientBuilder 執行個體。
適用於
UseConnectionRetryFilter<TConnectionRetryFilter>(IClientBuilder)
將提供的 TConnectionRetryFilter
型別設定為連線重試篩選準則,以用來判斷在失敗之後是否應該重試與「檔案」叢集的初始連線。
public static Orleans.Hosting.IClientBuilder UseConnectionRetryFilter<TConnectionRetryFilter> (this Orleans.Hosting.IClientBuilder builder) where TConnectionRetryFilter : class, Orleans.IClientConnectionRetryFilter;
static member UseConnectionRetryFilter : Orleans.Hosting.IClientBuilder -> Orleans.Hosting.IClientBuilder (requires 'ConnectionRetryFilter : null and 'ConnectionRetryFilter :> Orleans.IClientConnectionRetryFilter)
<Extension()>
Public Function UseConnectionRetryFilter(Of TConnectionRetryFilter As {Class, IClientConnectionRetryFilter}) (builder As IClientBuilder) As IClientBuilder
類型參數
- TConnectionRetryFilter
參數
- builder
- IClientBuilder
主機產生器。
傳回
用於鏈結的相同 IClientBuilder 執行個體。