GrainReferenceActivator.CreateReference(GrainId, GrainInterfaceType) 方法

定义

创建一个 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 引用。

适用于