GrainReferenceActivator.CreateReference(GrainId, GrainInterfaceType) Method
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
Creates a grain reference pointing to the specified grain id and implementing the specified grain interface type.
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
Parameters
- grainId
- GrainId
The grain id.
- interfaceType
- GrainInterfaceType
The grain interface type.
Returns
A new grain reference.