# StreamSubscriptionHandlerFactory Constructors

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

## StreamSubscriptionHandlerFactory(IStreamProvider, StreamId, string, GuidId) {#constructor-orleans-streams-istreamprovider-orleans-runtime-streamid-string-orle-a9fbb09f}

[Dedicated page](/orleans/docs/api/csharp/microsoft.orleans.streaming/orleans.streams.streamsubscriptionhandlerfactory/constructors/constructor-orleans-streams-istreamprovider-orleans-runtime-streamid-string-orle-a9fbb09f/)

[Source](https://github.com/dotnet/orleans/blob/e4e752cedecc2976811db49802c7a999b1f1c704/src/Orleans.Streaming/Internal/StreamSubsriptionHandlerFactory.cs#L38-L44)

```csharp
public StreamSubscriptionHandlerFactory(IStreamProvider streamProvider, StreamId streamId, string providerName, GuidId subscriptionId)
```

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

### Parameters

- `streamProvider` (`IStreamProvider`): The stream provider.
- `streamId` (`StreamId`): The stream identity.
- `providerName` (`string`): The stream provider name.
- `subscriptionId` (`GuidId`): The subscription identity.
