GrainExtensions.GetPrimaryKeyLong Method

Definition

Overloads

GetPrimaryKeyLong(IGrain)
GetPrimaryKeyLong(IAddressable)

Returns the long representation of a grain primary key.

GetPrimaryKeyLong(IGrain, String)
GetPrimaryKeyLong(IAddressable, String)

Returns the long representation of a grain primary key.

GetPrimaryKeyLong(IGrain)

Source:
GrainExtensions.cs
C#
public static long GetPrimaryKeyLong(this Orleans.IGrain grain);

Parameters

grain
IGrain

Returns

Applies to

.NET Orleans 3.6.0 and other versions
Product Versions
.NET Orleans 1.5.10, 3.4.5, 3.6.0

GetPrimaryKeyLong(IAddressable)

Source:
GrainExtensions.cs

Returns the long representation of a grain primary key.

C#
public static long GetPrimaryKeyLong(this Orleans.Runtime.IAddressable grain);

Parameters

grain
IAddressable

The grain to find the primary key for.

Returns

A long representing the primary key for this grain.

Exceptions

The provided grain does not have a Int64-based key.

Applies to

.NET Orleans 9.0.0 and other versions
Product Versions
.NET Orleans 1.5.10, 3.4.5, 3.6.0, 7.0.0, 8.0.0, 8.1.0, 8.2.0, 9.0.0

GetPrimaryKeyLong(IGrain, String)

Source:
GrainExtensions.cs
C#
public static long GetPrimaryKeyLong(this Orleans.IGrain grain, out string keyExt);

Parameters

grain
IGrain
keyExt
String

Returns

Applies to

.NET Orleans 3.6.0 and other versions
Product Versions
.NET Orleans 1.5.10, 3.4.5, 3.6.0

GetPrimaryKeyLong(IAddressable, String)

Source:
GrainExtensions.cs

Returns the long representation of a grain primary key.

C#
public static long GetPrimaryKeyLong(this Orleans.Runtime.IAddressable grain, out string keyExt);

Parameters

grain
IAddressable

The grain to find the primary key for.

keyExt
String

The output parameter to return the extended key part of the grain primary key, if extended primary key was provided for that grain.

Returns

A long representing the primary key for this grain.

Exceptions

The provided grain does not have a Int64-based key.

Applies to

.NET Orleans 9.0.0 and other versions
Product Versions
.NET Orleans 1.5.10, 3.4.5, 3.6.0, 7.0.0, 8.0.0, 8.1.0, 8.2.0, 9.0.0