# SiloBuilderMemoryStreamExtensions Methods

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

## AddMemoryStreams(ISiloBuilder, string, Action&lt;ISiloMemoryStreamConfigurator&gt;) {#addmemorystreams-this-orleans-hosting-isilobuilder-string-system-action-orleans-f3bb9e70}

[Dedicated page](/orleans/docs/api/csharp/microsoft.orleans.streaming/orleans.hosting.silobuildermemorystreamextensions/methods/addmemorystreams-this-orleans-hosting-isilobuilder-string-system-action-orleans-f3bb9e70/)

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

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

Configure silo to use memory streams, using the default message serializer ([DefaultMemoryMessageBodySerializer](/orleans/docs/api/csharp/microsoft.orleans.streaming/orleans.providers.defaultmemorymessagebodyserializer/)).

### Parameters

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

### Returns

The silo builder.

## AddMemoryStreams(ISiloBuilder, string, Action&lt;ISiloMemoryStreamConfigurator&gt;) {#addmemorystreams-1-this-orleans-hosting-isilobuilder-string-system-action-orlean-52752438}

[Dedicated page](/orleans/docs/api/csharp/microsoft.orleans.streaming/orleans.hosting.silobuildermemorystreamextensions/methods/addmemorystreams-1-this-orleans-hosting-isilobuilder-string-system-action-orlean-52752438/)

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

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

Configure silo to use memory streams.

### Parameters

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

### Returns

The silo builder.
