TaskId
struct
Namespace: Orleans.Durable.Tasks
Identifies a durable task within a hierarchy.
[System.Text.Json.Serialization.JsonConverter(Orleans.Durable.Tasks.TaskIdJsonConverter)][Orleans.Alias(Orleans.Durable.Tasks.TaskId)]public readonly struct TaskId : IEquatable<TaskId>, IFormattable, IParsable<TaskId>, ISpanFormattable, ISpanParsable<TaskId>Remarks
Each segment is non-empty, well-formed UTF-16 text, so every encoding of the identifier, such as UTF-8 and JSON, round-trips it unchanged. System.Text.Json serializes the identifier as its escaped hierarchical path, through
TaskIdJsonConverter. Properties
Methods
Child(string)Creates a child identifier by appending one logical segment.CreateRoot(string)Creates a root identifier from one logical segment.Equals(TaskId)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.IsAncestorOf(TaskId)Returns whether this non-empty identifier is an ancestor of or equal toother.TaskIdis outside the hierarchy and returnsfalse.IsChildOf(TaskId)Returns whether this identifier is a child ofother.IsDescendantOf(TaskId)Returns whether this non-empty identifier is a descendant of or equal toother.TaskIdis outside the hierarchy and returnsfalse.IsParentOf(TaskId)Returns whether this identifier is the parent ofother.ParentGets the parent identifier, orTaskIdfor a root.Parse(ReadOnlySpan<char>)Parses an escaped hierarchical path.Parse(ReadOnlySpan<char>, IFormatProvider?)Parses an escaped hierarchical path.Parse(string)Parses an escaped hierarchical path.Parse(string, IFormatProvider?)Parses an escaped hierarchical path.ToStringFormats this identifier as an escaped hierarchical path.ToString(string?, IFormatProvider?)Formats this identifier as an escaped hierarchical path.TryFormat(Span<char>, int, ReadOnlySpan<char>, IFormatProvider?)Attempts to format this identifier intodestination.TryParse(ReadOnlySpan<char>, IFormatProvider?, TaskId)Attempts to parse an escaped hierarchical path.TryParse(ReadOnlySpan<char>, TaskId)Attempts to parse an escaped hierarchical path.TryParse(string?, IFormatProvider?, TaskId)Attempts to parse an escaped hierarchical path.TryParse(string?, TaskId)Attempts to parse an escaped hierarchical path.operator ==(TaskId, TaskId)Returns whether two identifiers are equal.explicit operator TaskId(string)Parses an escaped hierarchical path.explicit operator string(TaskId)Formats an identifier as an escaped hierarchical path.operator !=(TaskId, TaskId)Returns whether two identifiers differ.
