LogConsistentGrain<TView>.InstallAdaptor 方法
定义
重要
一些信息与预发行产品相关,相应产品在发行之前可能会进行重大修改。 对于此处提供的信息,Microsoft 不作任何明示或暗示的担保。
在 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
协议服务