# StreamProviderExtensions Methods

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

## GetStream(IStreamProvider, Guid) {#getstream-1-this-orleans-streams-istreamprovider-system-guid-cc451fa0}

[Dedicated page](/orleans/docs/api/csharp/microsoft.orleans.streaming/orleans.streams.streamproviderextensions/methods/getstream-1-this-orleans-streams-istreamprovider-system-guid-cc451fa0/)

[Source](https://github.com/dotnet/orleans/blob/e4e752cedecc2976811db49802c7a999b1f1c704/src/Orleans.Streaming/Providers/IStreamProvider.cs)

```csharp
public static IAsyncStream<T> GetStream<T>(this IStreamProvider streamProvider, Guid id)
```

Gets the stream with the specified identity and namespace.

### Parameters

- `streamProvider` (`IStreamProvider`): The stream provider.
- `id` (`Guid`): The identifier.

### Returns

The stream.

## GetStream(IStreamProvider, long) {#getstream-1-this-orleans-streams-istreamprovider-long-942ec95f}

[Dedicated page](/orleans/docs/api/csharp/microsoft.orleans.streaming/orleans.streams.streamproviderextensions/methods/getstream-1-this-orleans-streams-istreamprovider-long-942ec95f/)

[Source](https://github.com/dotnet/orleans/blob/e4e752cedecc2976811db49802c7a999b1f1c704/src/Orleans.Streaming/Providers/IStreamProvider.cs)

```csharp
public static IAsyncStream<T> GetStream<T>(this IStreamProvider streamProvider, long id)
```

Gets the stream with the specified identity and namespace.

### Parameters

- `streamProvider` (`IStreamProvider`): The stream provider.
- `id` (`long`): The identifier.

### Returns

The stream.

## GetStream(IStreamProvider, string) {#getstream-1-this-orleans-streams-istreamprovider-string-4a838b34}

[Dedicated page](/orleans/docs/api/csharp/microsoft.orleans.streaming/orleans.streams.streamproviderextensions/methods/getstream-1-this-orleans-streams-istreamprovider-string-4a838b34/)

[Source](https://github.com/dotnet/orleans/blob/e4e752cedecc2976811db49802c7a999b1f1c704/src/Orleans.Streaming/Providers/IStreamProvider.cs)

```csharp
public static IAsyncStream<T> GetStream<T>(this IStreamProvider streamProvider, string id)
```

Gets the stream with the specified identity and namespace.

### Parameters

- `streamProvider` (`IStreamProvider`): The stream provider.
- `id` (`string`): The identifier.

### Returns

The stream.

## GetStream(IStreamProvider, string, Guid) {#getstream-1-this-orleans-streams-istreamprovider-string-system-guid-3d94dee6}

[Dedicated page](/orleans/docs/api/csharp/microsoft.orleans.streaming/orleans.streams.streamproviderextensions/methods/getstream-1-this-orleans-streams-istreamprovider-string-system-guid-3d94dee6/)

[Source](https://github.com/dotnet/orleans/blob/e4e752cedecc2976811db49802c7a999b1f1c704/src/Orleans.Streaming/Providers/IStreamProvider.cs)

```csharp
public static IAsyncStream<T> GetStream<T>(this IStreamProvider streamProvider, string ns, Guid id)
```

Gets the stream with the specified identity and namespace.

### Parameters

- `streamProvider` (`IStreamProvider`): The stream provider.
- `ns` (`string`): The namespace.
- `id` (`Guid`): The identifier.

### Returns

The stream.

## GetStream(IStreamProvider, string, long) {#getstream-1-this-orleans-streams-istreamprovider-string-long-9c1243a5}

[Dedicated page](/orleans/docs/api/csharp/microsoft.orleans.streaming/orleans.streams.streamproviderextensions/methods/getstream-1-this-orleans-streams-istreamprovider-string-long-9c1243a5/)

[Source](https://github.com/dotnet/orleans/blob/e4e752cedecc2976811db49802c7a999b1f1c704/src/Orleans.Streaming/Providers/IStreamProvider.cs)

```csharp
public static IAsyncStream<T> GetStream<T>(this IStreamProvider streamProvider, string ns, long id)
```

Gets the stream with the specified identity and namespace.

### Parameters

- `streamProvider` (`IStreamProvider`): The stream provider.
- `ns` (`string`): The namespace.
- `id` (`long`): The identifier.

### Returns

The stream.

## GetStream(IStreamProvider, string, string) {#getstream-1-this-orleans-streams-istreamprovider-string-string-637c1e96}

[Dedicated page](/orleans/docs/api/csharp/microsoft.orleans.streaming/orleans.streams.streamproviderextensions/methods/getstream-1-this-orleans-streams-istreamprovider-string-string-637c1e96/)

[Source](https://github.com/dotnet/orleans/blob/e4e752cedecc2976811db49802c7a999b1f1c704/src/Orleans.Streaming/Providers/IStreamProvider.cs)

```csharp
public static IAsyncStream<T> GetStream<T>(this IStreamProvider streamProvider, string ns, string id)
```

Gets the stream with the specified identity and namespace.

### Parameters

- `streamProvider` (`IStreamProvider`): The stream provider.
- `ns` (`string`): The namespace.
- `id` (`string`): The identifier.

### Returns

The stream.
