
上QQ阅读APP看书,第一时间看更新
2.5.2 状态同步API
在业务开发中,开发人员通常会根据业务需要手动同步/刷新持久化的状态,Orleans的Grain<TState>及IPersistentState<TState>类中都提供了相应的API调用。
Grain<TState>基类中为派生类提供了以下可重载API。

IPersistentState<TState>类则具有以下API可供调用及重载。

在业务开发中,开发人员通常会根据业务需要手动同步/刷新持久化的状态,Orleans的Grain<TState>及IPersistentState<TState>类中都提供了相应的API调用。
Grain<TState>基类中为派生类提供了以下可重载API。
IPersistentState<TState>类则具有以下API可供调用及重载。