# PersistentStreamConfiguratorExtensions Methods

[Type overview](/orleans/docs/api/csharp/microsoft.orleans.streaming/orleans.hosting.persistentstreamconfiguratorextensions/)

## ConfigureStreamPubSub(IPersistentStreamConfigurator, StreamPubSubType) {#configurestreampubsub-this-orleans-hosting-ipersistentstreamconfigurator-orleans-5e259970}

[Dedicated page](/orleans/docs/api/csharp/microsoft.orleans.streaming/orleans.hosting.persistentstreamconfiguratorextensions/methods/configurestreampubsub-this-orleans-hosting-ipersistentstreamconfigurator-orleans-5e259970/)

[Source](https://github.com/dotnet/orleans/blob/e4e752cedecc2976811db49802c7a999b1f1c704/src/Orleans.Streaming/Hosting/ClusterClientPersistentStreamConfigurator.cs#L27-L28)

```csharp
public static void ConfigureStreamPubSub(this IPersistentStreamConfigurator configurator, StreamPubSubType pubsubType = StreamPubSubType.ExplicitGrainBasedAndImplicit)
```

Configures the stream pub/sub type.

### Parameters

- `configurator` (`IPersistentStreamConfigurator`): The configuration builder.
- `pubsubType` (`StreamPubSubType`): The stream pub/sub type to use.
