Redigera

Dela via


GrainExtensions.GetGrainId(IAddressable) Method

Definition

Returns the grain id corresponding to the provided grain.

public static Orleans.Runtime.GrainId GetGrainId (this Orleans.Runtime.IAddressable grain);
static member GetGrainId : Orleans.Runtime.IAddressable -> Orleans.Runtime.GrainId
<Extension()>
Public Function GetGrainId (grain As IAddressable) As GrainId

Parameters

grain
IAddressable

The grain

Returns

The grain id corresponding to the provided grain.

Exceptions

The provided value has the wrong type or has no id.

Applies to