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. If the provider attribute "PrimaryCluster" is supplied in the provider configuration, then only the specified cluster accesses storage, and other clusters may not issue updates.

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