GrainReference
class
Namespace: Orleans.Runtime
This is the base class for all grain references.
[Orleans.Alias(GrainRef)]public class GrainReference : IAddressable, IEquatable<GrainReference>, IFormattable, ISpanFormattableProperties
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.GetUniformHashCodeGet a uniform hash code for this grain reference.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.
