# ClientBuilderExtensions

Package: [Microsoft.Orleans.Core](/orleans/docs/api/csharp/microsoft.orleans.core/) 10.0.0

[NuGet package](https://www.nuget.org/packages/Microsoft.Orleans.Core) | [Source](https://github.com/dotnet/orleans/blob/e4e752cedecc2976811db49802c7a999b1f1c704/src/Orleans.Core/Core/ClientBuilderExtensions.cs#L20)

```csharp
public static class ClientBuilderExtensions
```

Extension methods for [IClientBuilder](/orleans/docs/api/csharp/microsoft.orleans.core/orleans.hosting.iclientbuilder/).

## Methods

- [AddActivityPropagation(IClientBuilder)](/orleans/docs/api/csharp/microsoft.orleans.core/orleans.hosting.clientbuilderextensions/methods/addactivitypropagation-this-orleans-hosting-iclientbuilder-9e596cb0/)
- [AddClusterConnectionLostHandler(IClientBuilder, ConnectionToClusterLostHandler)](/orleans/docs/api/csharp/microsoft.orleans.core/orleans.hosting.clientbuilderextensions/methods/addclusterconnectionlosthandler-this-orleans-hosting-iclientbuilder-orleans-conn-4cbbf864/)
- [AddClusterConnectionLostHandler(IClientBuilder, Func&lt;IServiceProvider, ConnectionToClusterLostHandler&gt;)](/orleans/docs/api/csharp/microsoft.orleans.core/orleans.hosting.clientbuilderextensions/methods/addclusterconnectionlosthandler-this-orleans-hosting-iclientbuilder-system-func-312a9c3f/)
- [AddClusterConnectionStatusObserver(IClientBuilder)](/orleans/docs/api/csharp/microsoft.orleans.core/orleans.hosting.clientbuilderextensions/methods/addclusterconnectionstatusobserver-1-this-orleans-hosting-iclientbuilder-4ef9d5bd/)
- [AddClusterConnectionStatusObserver(IClientBuilder, TObserver)](/orleans/docs/api/csharp/microsoft.orleans.core/orleans.hosting.clientbuilderextensions/methods/addclusterconnectionstatusobserver-1-this-orleans-hosting-iclientbuilder-tobserv-4bbb8dd5/)
- [AddGatewayCountChangedHandler(IClientBuilder, Func&lt;IServiceProvider, GatewayCountChangedHandler&gt;)](/orleans/docs/api/csharp/microsoft.orleans.core/orleans.hosting.clientbuilderextensions/methods/addgatewaycountchangedhandler-this-orleans-hosting-iclientbuilder-system-func-sy-c7c50e4e/)
- [AddGatewayCountChangedHandler(IClientBuilder, GatewayCountChangedHandler)](/orleans/docs/api/csharp/microsoft.orleans.core/orleans.hosting.clientbuilderextensions/methods/addgatewaycountchangedhandler-this-orleans-hosting-iclientbuilder-orleans-gatewa-3a1e087b/)
- [Configure(IClientBuilder, Action&lt;TOptions&gt;)](/orleans/docs/api/csharp/microsoft.orleans.core/orleans.hosting.clientbuilderextensions/methods/configure-1-this-orleans-hosting-iclientbuilder-system-action-toptions-572af3ec/)
- [Configure(IClientBuilder, IConfiguration)](/orleans/docs/api/csharp/microsoft.orleans.core/orleans.hosting.clientbuilderextensions/methods/configure-1-this-orleans-hosting-iclientbuilder-microsoft-extensions-configurati-ed143e69/)
- [ConfigureServices(IClientBuilder, Action&lt;IServiceCollection&gt;)](/orleans/docs/api/csharp/microsoft.orleans.core/orleans.hosting.clientbuilderextensions/methods/configureservices-this-orleans-hosting-iclientbuilder-system-action-microsoft-ex-76a88081/)
- [UseConnectionRetryFilter(IClientBuilder, Func&lt;Exception, CancellationToken, Task&lt;bool&gt;&gt;)](/orleans/docs/api/csharp/microsoft.orleans.core/orleans.hosting.clientbuilderextensions/methods/useconnectionretryfilter-this-orleans-hosting-iclientbuilder-system-func-system-e131d793/)
- [UseConnectionRetryFilter(IClientBuilder, IClientConnectionRetryFilter)](/orleans/docs/api/csharp/microsoft.orleans.core/orleans.hosting.clientbuilderextensions/methods/useconnectionretryfilter-this-orleans-hosting-iclientbuilder-orleans-iclientconn-1307004b/)
- [UseConnectionRetryFilter(IClientBuilder)](/orleans/docs/api/csharp/microsoft.orleans.core/orleans.hosting.clientbuilderextensions/methods/useconnectionretryfilter-1-this-orleans-hosting-iclientbuilder-eee937f1/)
- [UseLocalhostClustering(IClientBuilder, int, string, string)](/orleans/docs/api/csharp/microsoft.orleans.core/orleans.hosting.clientbuilderextensions/methods/uselocalhostclustering-this-orleans-hosting-iclientbuilder-int-string-string-92e0e0e9/)
- [UseLocalhostClustering(IClientBuilder, int[], string, string)](/orleans/docs/api/csharp/microsoft.orleans.core/orleans.hosting.clientbuilderextensions/methods/uselocalhostclustering-this-orleans-hosting-iclientbuilder-int-array-1-string-st-89555d56/)
- [UseStaticClustering(IClientBuilder, Action&lt;OptionsBuilder&lt;StaticGatewayListProviderOptions&gt;&gt;)](/orleans/docs/api/csharp/microsoft.orleans.core/orleans.hosting.clientbuilderextensions/methods/usestaticclustering-this-orleans-hosting-iclientbuilder-system-action-microsoft-092e0731/)
- [UseStaticClustering(IClientBuilder, Action&lt;StaticGatewayListProviderOptions&gt;)](/orleans/docs/api/csharp/microsoft.orleans.core/orleans.hosting.clientbuilderextensions/methods/usestaticclustering-this-orleans-hosting-iclientbuilder-system-action-orleans-co-2bdba142/)
- [UseStaticClustering(IClientBuilder, IPEndPoint[])](/orleans/docs/api/csharp/microsoft.orleans.core/orleans.hosting.clientbuilderextensions/methods/usestaticclustering-this-orleans-hosting-iclientbuilder-params-system-net-ipendp-0cacbb97/)
