Skip to content

LogConsistencyProvider Methods

A log-consistency provider that relies on grain-specific custom code for reading states from storage, and appending deltas to storage. Grains that wish to use this provider must implement the Orleans.EventSourcing.CustomStorage.ICustomStorageInterface interface, to define how state is read and how deltas are written. The configured primary cluster identifier is passed to each custom-storage adaptor. Custom-storage adaptors accept submissions from every cluster.

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