LogConsistentGrain<TView>.InstallAdaptor 方法

定义

在 grain 构造后立即调用 以安装日志视图适配器

protected abstract void InstallAdaptor (Orleans.EventSourcing.ILogViewAdaptorFactory factory, object state, string grainTypeName, Orleans.Storage.IGrainStorage grainStorage, Orleans.EventSourcing.ILogConsistencyProtocolServices services);
abstract member InstallAdaptor : Orleans.EventSourcing.ILogViewAdaptorFactory * obj * string * Orleans.Storage.IGrainStorage * Orleans.EventSourcing.ILogConsistencyProtocolServices -> unit
Protected MustOverride Sub InstallAdaptor (factory As ILogViewAdaptorFactory, state As Object, grainTypeName As String, grainStorage As IGrainStorage, services As ILogConsistencyProtocolServices)

参数

factory
ILogViewAdaptorFactory

要使用的适配器工厂

state
Object

视图的初始状态

grainTypeName
String

grain 的类型名称

grainStorage
IGrainStorage

粒度存储(如果需要)

services
ILogConsistencyProtocolServices

协议服务

适用于