GrainReference
class
Namespace: Orleans.Runtime
This is the base class for all grain references.
[Orleans.Alias(GrainRef)]public class GrainReference : IAddressable, IEquatable<GrainReference>, IFormattable, ISpanFormattableConstructors
GrainReference(GrainReferenceShared, IdSpan)Initializes a new instance of theGrainReferenceclass.
Properties
CodecProviderGets the serialization codec provider.CopyContextPoolGets the serialization copy context pool.GrainIdGets the grain id.InterfaceNameGets the interface name.InterfaceTypeGets the interface type.InterfaceVersionGets the interface version.
Methods
CastCreates a new grain reference which implements the specified grain interface.Equals(GrainReference?)Indicates whether the current object is equal to another object of the same type.Equals(object?)Tests this reference for equality to another object. Two grain references are equal if they both refer to the same grain.GetHashCodeServes as the default hash function.GetInvokableGetUniformHashCodeGet a uniform hash code for this grain reference.Invoke(IRequest)Invokes the provided method.InvokeAsync(IRequest)Invokes the provided method.InvokeAsync(IRequest)Invokes the provided method.ToStringReturns a string that represents the current object.operator ==(GrainReference?, GrainReference?)Compares two references for equality. Two grain references are equal if they both refer to the same grain.operator !=(GrainReference?, GrainReference?)Compares two references for inequality. Two grain references are equal if they both refer to the same grain.
