# Codec_PubSubSubscriptionState Constructors

[Type overview](/orleans/docs/api/csharp/microsoft.orleans.streaming/orleanscodegen.orleans.streams.codec-pubsubsubscriptionstate/)

## Codec_PubSubSubscriptionState(IActivator&lt;PubSubSubscriptionState&gt;, ICodecProvider) {#constructor-orleans-serialization-activators-iactivator-orleans-streams-pubsubsu-ede9ecd3}

[Dedicated page](/orleans/docs/api/csharp/microsoft.orleans.streaming/orleanscodegen.orleans.streams.codec-pubsubsubscriptionstate/constructors/constructor-orleans-serialization-activators-iactivator-orleans-streams-pubsubsu-ede9ecd3/)

```csharp
public Codec_PubSubSubscriptionState(IActivator<PubSubSubscriptionState> _activator, ICodecProvider codecProvider)
```

### Parameters

- `_activator` (`IActivator<PubSubSubscriptionState>`)
- `codecProvider` (`ICodecProvider`)
