Skip to content

LogConsistentGrain<TView> Methods

Base class for all grains that use log-consistency for managing the state. It is the equivalent of Orleans.Grain for grains using log-consistency. (SiloAssemblyLoader uses it to extract type)

InstallAdaptor(ILogViewAdaptorFactory, object, string, IGrainStorage?, ILogConsistencyProtocolServices)

abstract
protected abstract void InstallAdaptor(ILogViewAdaptorFactory factory, object state, string grainTypeName, IGrainStorage? grainStorage, ILogConsistencyProtocolServices services)
called right after grain construction to install the log view adaptor

Parameters

factoryILogViewAdaptorFactory
The adaptor factory to use
stateobject
The initial state of the view
grainTypeNamestring
The type name of the grain
grainStorageIGrainStorage?
The grain storage, if needed
servicesILogConsistencyProtocolServices
Protocol services

Participate(IGrainLifecycle)

virtual
View source
public virtual void Participate(IGrainLifecycle lifecycle)
Adds the provided observer as a participant in the lifecycle.

Parameters

lifecycleIGrainLifecycle
The observer.