ClientBuilderExtensions.UseConnectionRetryFilter 方法
定义
重要
一些信息与预发行产品相关,相应产品在发行之前可能会进行重大修改。 对于此处提供的信息,Microsoft 不作任何明示或暗示的担保。
重载
UseConnectionRetryFilter(IClientBuilder, IClientConnectionRetryFilter) |
将提供的委托配置为连接重试筛选器,用于确定是否应在失败后重试与 Orleans 群集的初始连接。 |
UseConnectionRetryFilter(IClientBuilder, Func<Exception,CancellationToken,Task<Boolean>>) |
将提供的委托配置为连接重试筛选器,用于确定是否应在失败后重试与 Orleans 群集的初始连接。 |
UseConnectionRetryFilter<TConnectionRetryFilter>(IClientBuilder) |
将所提供的 |
UseConnectionRetryFilter(IClientBuilder, IClientConnectionRetryFilter)
将提供的委托配置为连接重试筛选器,用于确定是否应在失败后重试与 Orleans 群集的初始连接。
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>>)
将提供的委托配置为连接重试筛选器,用于确定是否应在失败后重试与 Orleans 群集的初始连接。
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
类型配置为连接重试筛选器,用于确定是否应在失败后重试与 Orleans 群集的初始连接。
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 实例。