GrainId
struct
Namespace: Orleans.Runtime
Identifies a grain.
[Orleans.GenerateSerializer][Orleans.Immutable][System.Text.Json.Serialization.JsonConverter(Orleans.Runtime.GrainIdJsonConverter)]public readonly struct GrainId : IComparable<GrainId>, IEquatable<GrainId>, IFormattable, IParsable<GrainId>, ISpanFormattable, ISpanParsable<GrainId>, ISerializableConstructors
GrainId(GrainType, IdSpan)Creates a newGrainTypeinstance.
Properties
Methods
CompareTo(GrainId)Compares the current instance with another object of the same type and returns an integer that indicates whether the current instance precedes, follows, or occurs in the same position in the sort order as the other object.Create(GrainType, IdSpan)Creates a newGrainTypeinstance.Create(GrainType, string)Creates a newGrainTypeinstance.Create(string, string)Creates a newGrainTypeinstance.Equals(GrainId)Indicates whether the current object is equal to another object of the same type.Equals(object?)Indicates whether this instance and a specified object are equal.GetHashCodeReturns the hash code for this instance.GetObjectData(SerializationInfo, StreamingContext)Populates aSystem.Runtime.Serialization.SerializationInfowith the data needed to serialize the target object.GetUniformHashCodeGenerates a uniform, stable hash code for a grain id.Parse(ReadOnlySpan<char>, IFormatProvider?)Parses aGrainIdfrom the span.Parse(string)Parses aGrainIdfrom the string.Parse(string, IFormatProvider?)Parses aGrainIdfrom the string.ToStringReturns the fully qualified type name of this instance.TryParse(ReadOnlySpan<char>, IFormatProvider?, GrainId)Tries to parse aGrainIdfrom the span.TryParse(string?, IFormatProvider?, GrainId)Tries to parse aGrainIdfrom the string.TryParse(string?, GrainId)Tries to parse aGrainIdfrom the string.operator ==(GrainId, GrainId)Compares the provided operands for equality.operator !=(GrainId, GrainId)Compares the provided operands for inequality.
