# QueueBalancerBase.Initialize(IStreamQueueMapper)

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

[Source](https://github.com/dotnet/orleans/blob/e4e752cedecc2976811db49802c7a999b1f1c704/src/Orleans.Streaming/QueueBalancer/QueueBalancerBase.cs#L54-L57)

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

Initializes this instance.

### Parameters

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

### Returns

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