# MemoryAdapterFactory&lt;TSerializer&gt; Constructors

[Type overview](/orleans/docs/api/csharp/microsoft.orleans.streaming/orleans.providers.memoryadapterfactory-1/)

## MemoryAdapterFactory&lt;TSerializer&gt;(string, StreamCacheEvictionOptions, StreamStatisticOptions, HashRingStreamQueueMapperOptions, IServiceProvider, IGrainFactory, ILoggerFactory) {#constructor-string-orleans-configuration-streamcacheevictionoptions-orleans-conf-ad7b06e6}

[Dedicated page](/orleans/docs/api/csharp/microsoft.orleans.streaming/orleans.providers.memoryadapterfactory-1/constructors/constructor-string-orleans-configuration-streamcacheevictionoptions-orleans-conf-ad7b06e6/)

[Source](https://github.com/dotnet/orleans/blob/e4e752cedecc2976811db49802c7a999b1f1c704/src/Orleans.Streaming/MemoryStreams/MemoryAdapterFactory.cs#L77-L98)

```csharp
public MemoryAdapterFactory(string providerName, StreamCacheEvictionOptions cacheOptions, StreamStatisticOptions statisticOptions, HashRingStreamQueueMapperOptions queueMapperOptions, IServiceProvider serviceProvider, IGrainFactory grainFactory, ILoggerFactory loggerFactory)
```

### Parameters

- `providerName` (`string`)
- `cacheOptions` (`StreamCacheEvictionOptions`)
- `statisticOptions` (`StreamStatisticOptions`)
- `queueMapperOptions` (`HashRingStreamQueueMapperOptions`)
- `serviceProvider` (`IServiceProvider`)
- `grainFactory` (`IGrainFactory`)
- `loggerFactory` (`ILoggerFactory`)
