/// <summary>Constructs a reference to the grain with the specified ID.</summary> internal static GrainReference FromGrainId(GrainReferenceShared shared, GrainId grainId) { return(new GrainReference(shared, grainId.Key)); }
/// <summary> /// Creates a new <see cref="GrainReference"/> instance for the specified <paramref name="grainId"/>. /// </summary> internal static GrainReference FromGrainId(GrainReferenceShared shared, GrainId grainId) => new(shared, grainId.Key);
/// <summary>Constructs a reference to the grain with the specified Id.</summary> protected GrainReference(GrainReferenceShared shared, IdSpan key) { _shared = shared; _key = key; }
protected NewGrainReference(GrainReferenceShared shared, IdSpan key) : base(shared, key) { }