Skip to content

MemoryAdapterFactory<TSerializer> Constructors

Adapter factory for in memory stream provider. This factory acts as the adapter and the adapter factory. The events are stored in an in-memory grain that behaves as an event queue, this provider adapter is primarily used for testing

MemoryAdapterFactory<TSerializer>(string, StreamCacheEvictionOptions, StreamStatisticOptions, HashRingStreamQueueMapperOptions, IServiceProvider, IGrainFactory, ILoggerFactory)

View source
public MemoryAdapterFactory(string providerName, StreamCacheEvictionOptions cacheOptions, StreamStatisticOptions statisticOptions, HashRingStreamQueueMapperOptions queueMapperOptions, IServiceProvider serviceProvider, IGrainFactory grainFactory, ILoggerFactory loggerFactory)
Initializes a new instance of the Orleans.Providers.MemoryAdapterFactory class.

Parameters

providerNamestring
The stream provider name.
cacheOptionsStreamCacheEvictionOptions
The stream cache eviction options.
statisticOptionsStreamStatisticOptions
The stream statistic options.
queueMapperOptionsHashRingStreamQueueMapperOptions
The queue mapper options.
serviceProviderIServiceProvider
The service provider.
grainFactoryIGrainFactory
The grain factory.
loggerFactoryILoggerFactory
The logger factory.