src/Orleans.Core.Abstractions/Core/GrainExtensions.cs
/// <summary>
/// Gets the exception message which is thrown when a grain argument has a non-supported implementation type.
/// </summary>
/// <param name="grain">The argument.</param>
/// <returns>The exception message which is thrown when a grain argument has a non-supported implementation type.</returns>
Gets the exception message which is thrown when a grain argument has a non-supported implementation type.
Gets the exception message which is thrown when a grain argument has a non - supported implementation type .
private static string GetWrongGrainTypeErrorMessage(IAddressable grain) =>
            $"{nameof(GetGrainId)} has been called on an unexpected type: {grain.GetType().FullName}."
            + $" If the parameter is a grain implementation, you can derive from {nameof(Grain)} or implement"
            + $" {nameof(IGrainBase)} in order to support this method. Alternatively, inject {nameof(IGrainContext)} and"
            + $" access the {nameof(IGrainContext.GrainId)} or {nameof(IGrainContext.GrainReference)} property.";
private static string GetWrongGrainTypeErrorMessage ( IAddressable grain ) => $" { nameof ( GetGrainId ) }  has been called on an unexpected type:  { grain . GetType ( ) . FullName } . " + $"  If the parameter is a grain implementation, you can derive from  { nameof ( Grain ) }  or implement " + $" { nameof ( IGrainBase ) }  in order to support this method. Alternatively, inject  { nameof ( IGrainContext ) }  and " + $"  access the  { nameof ( IGrainContext . GrainId ) }  or  { nameof ( IGrainContext . GrainReference ) }  property. " ;
Gets the exception message which is thrown when a grain argument has a non-supported implementation type.
Gets the exception message which is thrown when a grain argument has a non - supported implementation type .
The exception message which is thrown when a grain argument has a non-supported implementation type.
The exception message which is thrown when a grain argument has a non - supported implementation type .
grain
IAddressable
None