GrainReferenceActivator.CreateReference(GrainId, GrainInterfaceType) 方法
定义
重要
一些信息与预发行产品相关,相应产品在发行之前可能会进行重大修改。 对于此处提供的信息,Microsoft 不作任何明示或暗示的担保。
创建一个 grain 引用,该引用指向指定的 grain ID 并实现指定的 grain 接口类型。
public Orleans.Runtime.GrainReference CreateReference(Orleans.Runtime.GrainId grainId, Orleans.Runtime.GrainInterfaceType interfaceType);
member this.CreateReference : Orleans.Runtime.GrainId * Orleans.Runtime.GrainInterfaceType -> Orleans.Runtime.GrainReference
Public Function CreateReference (grainId As GrainId, interfaceType As GrainInterfaceType) As GrainReference
参数
- grainId
- GrainId
粒度 ID。
- interfaceType
- GrainInterfaceType
grain 接口类型。
返回
新的 grain 引用。