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