Skip to content

LogConsistencyProvider Methods

A log-consistency provider that stores the latest view in primary storage, using any standard storage provider. Supports multiple clusters connecting to the same primary storage (doing optimistic concurrency control via e-tags)

The log itself is transient, i.e. not actually saved to storage - only the latest view (snapshot) and some metadata (the log position, and write flags) are stored in the primary.

MakeLogViewAdaptor(ILogViewAdaptorHost<TView, TEntry>, TView, string, IGrainStorage, ILogConsistencyProtocolServices)

View source
public ILogViewAdaptor<TView, TEntry> MakeLogViewAdaptor<TView, TEntry>(ILogViewAdaptorHost<TView, TEntry> hostGrain, TView initialState, string grainTypeName, IGrainStorage grainStorage, ILogConsistencyProtocolServices services)
Constructs a Orleans.EventSourcing.ILogViewAdaptor to be installed in the given host grain.

Parameters

hostGrainILogViewAdaptorHost<TView, TEntry>
The grain that is hosting this adaptor
initialStateTView
The initial state for this view
grainTypeNamestring
The type name of the grain
grainStorageIGrainStorage
Storage provider
servicesILogConsistencyProtocolServices
Runtime services for multi-cluster coherence protocols