# LeaseBasedQueueBalancer.Initialize(IStreamQueueMapper)

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

[Source](https://github.com/dotnet/orleans/blob/e4e752cedecc2976811db49802c7a999b1f1c704/src/Orleans.Streaming/QueueBalancer/LeaseBasedQueueBalancer.cs#L77-L98)

```csharp
public override Task Initialize(IStreamQueueMapper queueMapper)
```

Initializes this instance.

### Parameters

- `queueMapper` (`IStreamQueueMapper`): The queue mapper.

### Returns

A `System.Threading.Tasks.Task` representing the operation.
