src/Orleans.Core.Abstractions/IDs/GrainIdKeyExtensions.cs
/// <summary>
/// Returns the <see cref="long"/> representation of a grain key.
/// </summary>
/// <param name="grainId">The grain to find the key for.</param>
/// <returns>A <see cref="long"/> representing the key for this grain.</returns>
Returns the  representation of a grain key.
Returns the representation of a grain key .
public static long GetIntegerKey(this GrainId grainId)
        {
            if (!grainId.TryGetIntegerKey(out var result))
            {
                ThrowInvalidIntegerKeyFormat(grainId);
            }
            return result;
        }
public static long GetIntegerKey ( this GrainId grainId ) { if ( ! grainId . TryGetIntegerKey ( out var result ) ) { ThrowInvalidIntegerKeyFormat ( grainId ) ; } return result ; }
Returns the  representation of a grain key.
Returns the representation of a grain key .
A  representing the key for this grain.
A representing the key for this grain .
GrainId
this
grainId
The grain to find the key for.
The grain to find the key for .