Skip to content

ILogViewAdaptorFactory Methods

Interface to be implemented for a log-view adaptor factory

MakeLogViewAdaptor(ILogViewAdaptorHost<TLogView, TLogEntry>, TLogView, string, IGrainStorage, ILogConsistencyProtocolServices)

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

Parameters

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