Edit

Share via


GrainReferenceActivator.CreateReference(GrainId, GrainInterfaceType) Method

Definition

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.

Applies to