# ClientBuilderStreamingExtensions Methods

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

## AddMemoryStreams(IClientBuilder, string, Action&lt;IClusterClientMemoryStreamConfigurator&gt;) {#addmemorystreams-this-orleans-hosting-iclientbuilder-string-system-action-orlean-2ef5313b}

[Dedicated page](/orleans/docs/api/csharp/microsoft.orleans.streaming/orleans.hosting.clientbuilderstreamingextensions/methods/addmemorystreams-this-orleans-hosting-iclientbuilder-string-system-action-orlean-2ef5313b/)

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

```csharp
public static IClientBuilder AddMemoryStreams(this IClientBuilder builder, string name, Action<IClusterClientMemoryStreamConfigurator> configure = null)
```

Adds a new in-memory stream provider to the client, using the default message serializer ([DefaultMemoryMessageBodySerializer](/orleans/docs/api/csharp/microsoft.orleans.streaming/orleans.providers.defaultmemorymessagebodyserializer/)).

### Parameters

- `builder` (`IClientBuilder`): The builder.
- `name` (`string`): The stream provider name.
- `configure` (`Action<IClusterClientMemoryStreamConfigurator>`): The configuration delegate.

### Returns

The client builder.

## AddMemoryStreams(IClientBuilder, string, Action&lt;IClusterClientMemoryStreamConfigurator&gt;) {#addmemorystreams-1-this-orleans-hosting-iclientbuilder-string-system-action-orle-ffca921d}

[Dedicated page](/orleans/docs/api/csharp/microsoft.orleans.streaming/orleans.hosting.clientbuilderstreamingextensions/methods/addmemorystreams-1-this-orleans-hosting-iclientbuilder-string-system-action-orle-ffca921d/)

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

```csharp
public static IClientBuilder AddMemoryStreams<TSerializer>(this IClientBuilder builder, string name, Action<IClusterClientMemoryStreamConfigurator> configure = null)
```

Adds a new in-memory stream provider to the client.

### Parameters

- `builder` (`IClientBuilder`): The builder.
- `name` (`string`): The stream provider name.
- `configure` (`Action<IClusterClientMemoryStreamConfigurator>`): The configuration delegate.

### Returns

The client builder.

## AddPersistentStreams(IClientBuilder, string, Func&lt;IServiceProvider, string, IQueueAdapterFactory&gt;, Action&lt;IClusterClientPersistentStreamConfigurator&gt;) {#addpersistentstreams-this-orleans-hosting-iclientbuilder-string-system-func-syst-aa6f58cb}

[Dedicated page](/orleans/docs/api/csharp/microsoft.orleans.streaming/orleans.hosting.clientbuilderstreamingextensions/methods/addpersistentstreams-this-orleans-hosting-iclientbuilder-string-system-func-syst-aa6f58cb/)

[Source](https://github.com/dotnet/orleans/blob/e4e752cedecc2976811db49802c7a999b1f1c704/src/Orleans.Streaming/Hosting/ClientBuilderStreamingExtensions.cs#L68-L70)

```csharp
public static IClientBuilder AddPersistentStreams(this IClientBuilder builder, string name, Func<IServiceProvider, string, IQueueAdapterFactory> adapterFactory, Action<IClusterClientPersistentStreamConfigurator> configureStream)
```

Adds a new persistent streams provider to the client.

### Parameters

- `builder` (`IClientBuilder`): The builder.
- `name` (`string`): The stream provider name.
- `adapterFactory` (`Func<IServiceProvider, string, IQueueAdapterFactory>`): The adapter factory.
- `configureStream` (`Action<IClusterClientPersistentStreamConfigurator>`): The configuration delegate.

### Returns

The client builder.

## AddStreaming(IClientBuilder) {#addstreaming-this-orleans-hosting-iclientbuilder-3dca326d}

[Dedicated page](/orleans/docs/api/csharp/microsoft.orleans.streaming/orleans.hosting.clientbuilderstreamingextensions/methods/addstreaming-this-orleans-hosting-iclientbuilder-3dca326d/)

[Source](https://github.com/dotnet/orleans/blob/e4e752cedecc2976811db49802c7a999b1f1c704/src/Orleans.Streaming/Hosting/ClientBuilderStreamingExtensions.cs#L15)

```csharp
public static IClientBuilder AddStreaming(this IClientBuilder builder)
```

Adds support for streaming to this client.

### Parameters

- `builder` (`IClientBuilder`): The builder.

### Returns

The client builder.
