示例#1
0
 /// <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);
示例#3
0
 /// <summary>Constructs a reference to the grain with the specified Id.</summary>
 protected GrainReference(GrainReferenceShared shared, IdSpan key)
 {
     _shared = shared;
     _key    = key;
 }
示例#4
0
 protected NewGrainReference(GrainReferenceShared shared, IdSpan key) : base(shared, key)
 {
 }