MemoryAdapterFactory<TSerializer>
class
Namespace: Orleans.Providers
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
public class MemoryAdapterFactory<TSerializer> : IQueueAdapter, IQueueAdapterCache, IQueueAdapterFactory where TSerializer : class, Orleans.Providers.IMemoryMessageBodySerializerConstructors
Properties
DirectionGets the direction of this queue adapter:StreamProviderDirection,StreamProviderDirection, orStreamProviderDirection.IsRewindableGets a value indicating whether this is a rewindable stream adapter - supports subscribing from previous point in time.NameGets the name of the adapter. Primarily for logging purposes
Methods
Create(IServiceProvider, string)Creates a newOrleans.Providers.MemoryAdapterFactoryinstance.CreateAdapterCreates a queue adapter.CreateQueueCache(QueueId)Create a cache for a given queue idCreateReceiver(QueueId)Creates a queue receiver for the specified queueIdGetDeliveryFailureHandler(QueueId)Acquire delivery failure handler for a queueGetQueueAdapterCacheCreates queue message cache adapter.GetStreamQueueMapperCreates a queue mapper.InitInitializes this instance.QueueMessageBatchAsync(StreamId, IEnumerable<T>, StreamSequenceToken, Dictionary<string, object>)Writes a set of events to the queue as a single batch associated with the provided streamId.
