# 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/e4e752cedecc2976811db49802c7a999b1f1c704/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.
