ClientBuilderExtensions
class
Namespace: Orleans.Hosting
Extension methods for
IClientBuilder. public static class ClientBuilderExtensionsMethods
AddActivityPropagation(IClientBuilder)AddSystem.Diagnostics.Activity.Currentpropagation through grain calls. Note: according toSystem.Diagnostics.ActivitySource.StartActivityactivity will be created only when any listener for activity existsSystem.Diagnostics.ActivitySource.HasListenersandSystem.Diagnostics.ActivityListener.SamplereturnsSystem.Diagnostics.ActivitySamplingResult.PropagationData.AddClusterConnectionLostHandler(IClientBuilder, ConnectionToClusterLostHandler)Registers aConnectionToClusterLostHandlerevent handler.AddClusterConnectionLostHandler(IClientBuilder, Func<IServiceProvider, ConnectionToClusterLostHandler>)Registers aConnectionToClusterLostHandlerevent handler.AddClusterConnectionStatusObserver(IClientBuilder)Registers a cluster connection status observer.AddClusterConnectionStatusObserver(IClientBuilder, TObserver)Registers a cluster connection status observer.AddGatewayCountChangedHandler(IClientBuilder, Func<IServiceProvider, GatewayCountChangedHandler>)Registers aGatewayCountChangedHandlerevent handler.AddGatewayCountChangedHandler(IClientBuilder, GatewayCountChangedHandler)Registers aGatewayCountChangedHandlerevent handler.Configure(IClientBuilder, Action<TOptions>)Registers an action used to configure a particular type of options.Configure(IClientBuilder, IConfiguration)Registers a configuration instance whichTOptionswill bind against.ConfigureServices(IClientBuilder, Action<IServiceCollection>)Adds services to the container. This can be called multiple times and the results will be additive.UseConnectionRetryFilter(IClientBuilder, Func<Exception, CancellationToken, Task<bool>>)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, 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)Configures the providedTConnectionRetryFiltertype as a connection retry filter, used to determine whether initial connection to the Orleans cluster should be retried after a failure.UseLocalhostClustering(IClientBuilder, int, string, string)Configures the client to connect to a silo on the localhost.UseLocalhostClustering(IClientBuilder, int[], string, string)Configures the client to connect to a silo on the localhost.UseStaticClustering(IClientBuilder, Action<OptionsBuilder<StaticGatewayListProviderOptions>>)Configures the client to use static clustering.UseStaticClustering(IClientBuilder, Action<StaticGatewayListProviderOptions>)Configures the client to use static clustering.UseStaticClustering(IClientBuilder, IPEndPoint[])Configures the client to use static clustering.
