Edytuj

Udostępnij za pośrednictwem


ClientBuilderExtensions.UseConnectionRetryFilter Method

Definition

Overloads

UseConnectionRetryFilter(IClientBuilder, IClientConnectionRetryFilter)

Configures the provided delegate as a connection retry filter, used to determine whether initial connection to the Orleans cluster should be retried after a failure.

UseConnectionRetryFilter(IClientBuilder, Func<Exception,CancellationToken,Task<Boolean>>)

Configures the provided delegate as a connection retry filter, used to determine whether initial connection to the Orleans cluster should be retried after a failure.

UseConnectionRetryFilter<TConnectionRetryFilter>(IClientBuilder)

Configures the provided TConnectionRetryFilter type as a connection retry filter, used to determine whether initial connection to the Orleans cluster should be retried after a failure.

UseConnectionRetryFilter(IClientBuilder, IClientConnectionRetryFilter)

Configures the provided delegate as a connection retry filter, used to determine whether initial connection to the Orleans cluster should be retried after a failure.

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

Parameters

builder
IClientBuilder

The host builder.

connectionRetryFilter
IClientConnectionRetryFilter

The connection retry filter.

Returns

The same instance of the IClientBuilder for chaining.

Applies to

UseConnectionRetryFilter(IClientBuilder, Func<Exception,CancellationToken,Task<Boolean>>)

Configures the provided delegate as a connection retry filter, used to determine whether initial connection to the Orleans cluster should be retried after a failure.

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

Parameters

builder
IClientBuilder

The host builder.

connectionRetryFilter
Func<Exception,CancellationToken,Task<Boolean>>

The connection retry filter.

Returns

The same instance of the IClientBuilder for chaining.

Applies to

UseConnectionRetryFilter<TConnectionRetryFilter>(IClientBuilder)

Configures the provided TConnectionRetryFilter type as a connection retry filter, used to determine whether initial connection to the Orleans cluster should be retried after a failure.

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

Type Parameters

TConnectionRetryFilter

Parameters

builder
IClientBuilder

The host builder.

Returns

The same instance of the IClientBuilder for chaining.

Applies to