# PubSubSubscriptionState Constructors

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

## PubSubSubscriptionState(GuidId, QualifiedStreamId, GrainId) {#constructor-orleans-runtime-guidid-orleans-runtime-qualifiedstreamid-orleans-run-1d4e9a5f}

[Dedicated page](/orleans/docs/api/csharp/microsoft.orleans.streaming/orleans.streams.pubsubsubscriptionstate/constructors/constructor-orleans-runtime-guidid-orleans-runtime-qualifiedstreamid-orleans-run-1d4e9a5f/)

[Source](https://github.com/dotnet/orleans/blob/e4e752cedecc2976811db49802c7a999b1f1c704/src/Orleans.Streaming/PubSub/PubSubSubscriptionState.cs#L47-L56)

```csharp
public PubSubSubscriptionState(GuidId subscriptionId, QualifiedStreamId streamId, GrainId streamConsumer)
```

### Parameters

- `subscriptionId` (`GuidId`)
- `streamId` (`QualifiedStreamId`)
- `streamConsumer` (`GrainId`)
