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