# ImplicitChannelSubscriptionAttribute.ImplicitChannelSubscriptionAttribute(string, string)

[Type overview](/orleans/docs/api/csharp/microsoft.orleans.broadcastchannel/orleans.implicitchannelsubscriptionattribute/) | [Constructors](/orleans/docs/api/csharp/microsoft.orleans.broadcastchannel/orleans.implicitchannelsubscriptionattribute/constructors/)

[Source](https://github.com/dotnet/orleans/blob/e4e752cedecc2976811db49802c7a999b1f1c704/src/Orleans.BroadcastChannel/SubscriberTable/Predicates/ImplicitChannelSubscriptionAttribute.cs#L41-L45)

```csharp
public ImplicitChannelSubscriptionAttribute(string streamNamespace, string channelIdMapper = null)
```

Used to subscribe to the specified stream namespace.

### Parameters

- `streamNamespace` (`string`): The stream namespace to subscribe.
- `channelIdMapper` (`string`): The name of the stream identity mapper.
