# SiloPersistentStreamConfiguratorExtension.UseLeaseBasedQueueBalancer(ISiloPersistentStreamConfigurator, Action&lt;OptionsBuilder&lt;LeaseBasedQueueBalancerOptions&gt;&gt;)

[Type overview](/orleans/docs/api/csharp/microsoft.orleans.streaming/orleans.hosting.silopersistentstreamconfiguratorextension/) | [Methods](/orleans/docs/api/csharp/microsoft.orleans.streaming/orleans.hosting.silopersistentstreamconfiguratorextension/methods/)

[Source](https://github.com/dotnet/orleans/blob/e4e752cedecc2976811db49802c7a999b1f1c704/src/Orleans.Streaming/QueueBalancer/PersistentStreamConfiguratorExtension.cs#L70-L72)

```csharp
public static void UseLeaseBasedQueueBalancer(this ISiloPersistentStreamConfigurator configurator, Action<OptionsBuilder<LeaseBasedQueueBalancerOptions>> configureOptions = null)
```

Configures the stream provider to use the lease based queue balancer.

### Parameters

- `configurator` (`ISiloPersistentStreamConfigurator`): The configuration builder.
- `configureOptions` (`Action<OptionsBuilder<LeaseBasedQueueBalancerOptions>>`): The configure options.
