# HashRingBasedStreamQueueMapper Constructors

[Type overview](/orleans/docs/api/csharp/microsoft.orleans.streaming/orleans.streams.hashringbasedstreamqueuemapper/)

## HashRingBasedStreamQueueMapper(HashRingStreamQueueMapperOptions, string) {#constructor-orleans-configuration-hashringstreamqueuemapperoptions-string-cdc4c4cc}

[Dedicated page](/orleans/docs/api/csharp/microsoft.orleans.streaming/orleans.streams.hashringbasedstreamqueuemapper/constructors/constructor-orleans-configuration-hashringstreamqueuemapperoptions-string-cdc4c4cc/)

[Source](https://github.com/dotnet/orleans/blob/e4e752cedecc2976811db49802c7a999b1f1c704/src/Orleans.Streaming/QueueAdapters/HashRingBasedStreamQueueMapper.cs#L20)

```csharp
public HashRingBasedStreamQueueMapper(HashRingStreamQueueMapperOptions options, string queueNamePrefix)
```

Initializes a new instance of the [HashRingBasedStreamQueueMapper](/orleans/docs/api/csharp/microsoft.orleans.streaming/orleans.streams.hashringbasedstreamqueuemapper/) class.

### Parameters

- `options` (`HashRingStreamQueueMapperOptions`): The options.
- `queueNamePrefix` (`string`): The queue name prefix.
