GrainExtensions.GetGrainId(IAddressable) Method

Definition

Returns the grain id corresponding to the provided grain.

C#
public static Orleans.Runtime.GrainId GetGrainId(this Orleans.Runtime.IAddressable grain);

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

Toode Versioonid
.NET Orleans 7.0.0, 8.0.0, 8.1.0, 8.2.0, 9.0.0