Skip to content

ILogViewAdaptorHost<TLogView, TLogEntry> Methods

Interface implemented by all grains which use log-view consistency It gives the log view adaptor access to grain-specific information and callbacks.

OnViewChanged(bool, bool)

abstract
public abstract void ILogViewAdaptorHost<TLogView, OnViewChanged(bool tentative, bool confirmed)
Notifies the host grain about state changes. Called by Orleans.EventSourcing.ILogViewAdaptor whenever the tentative or confirmed state changes. Implementations may vary as to whether and how much they batch change notifications. Any exceptions thrown will be caught and logged as a warning./>.

Parameters

tentativebool
confirmedbool

UpdateView(TLogView, TLogEntry)

abstract
public abstract void ILogViewAdaptorHost<TLogView, UpdateView(TLogView view, TLogEntry entry)
Implementation of view transitions. Any exceptions thrown will be caught and logged as a warning./>.

Parameters

viewTLogView
entryTLogEntry