# StreamSubscriptionManagerExtensions.TryGetStreamSubscriptionManager(IStreamProvider, IStreamSubscriptionManager?)

[Type overview](/orleans/docs/api/csharp/microsoft.orleans.streaming/orleans.streams.pubsub.streamsubscriptionmanagerextensions/) | [Methods](/orleans/docs/api/csharp/microsoft.orleans.streaming/orleans.streams.pubsub.streamsubscriptionmanagerextensions/methods/)

[Source](https://github.com/dotnet/orleans/blob/b7a9e3e1c9c54b3cec3a467c5734bf7744541bcf/src/Orleans.Streaming/PubSub/StreamSubscriptionManagerExtensions.cs#L168-L177)

```csharp
public static bool TryGetStreamSubscriptionManager(this IStreamProvider streamProvider, out IStreamSubscriptionManager? manager)
```

Returns the [IStreamSubscriptionManager](/orleans/docs/api/csharp/microsoft.orleans.streaming/orleans.streams.core.istreamsubscriptionmanager/) for the provided stream provider.

### Parameters

- `streamProvider` (`IStreamProvider`): The stream provider.
- `manager` (`IStreamSubscriptionManager?`): The manager.

### Returns

`true` if the stream subscription manager could be retrieved, `false` otherwise.
