SolutionId

References
Provides an app-wide secure way to generate solution runtime ids.

Properties

CancelledIds

#
Enumerate over the most recent cancelled solution IDs, starting with the most recent one. This iterator is thread-safe, but does not update during its lifespan. Calling IsCancelled(SolutionId) is a much faster way to check for a specific cancellation.
public static IEnumerable<SolutionId> CancelledIds { get; }

IsValid

#
Gets whether this is a valid Id.
public bool IsValid { get; }

None

#
Gets an unset solution id.
public static SolutionId None { get; }

Methods

CompareTo

#
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.
public int CompareTo(
other
An object to compare with this instance.
)
A value that indicates the relative order of the objects being compared.

Equals

#
Indicates whether this instance and a specified object are equal.
public override bool Equals(
obj
The object to compare with the current instance.
)
true if obj and this instance are the same type and represent the same value; otherwise, false.
ValueType.Equals

Equals

#
Indicates whether the current object is equal to another object of the same type.
public bool Equals(
other
An object to compare with this object.
)

GetHashCode

#
Returns the hash code for this instance.
public override int GetHashCode()
A hash of the solution id. Invalid hashes are always zero, valid hashes are never zero.

GetHashCode

#
Returns the hash code for this instance.
public int GetHashCode(
out long
sixtyFourBitHashCode
)
A hash of the solution id. Invalid hashes are always zero, valid hashes are never zero.

IsCancelled

#
Gets whether a specific solution has been cancelled. There is at present no way to check whether an id is still running or whether it has completed.
public static bool IsCancelled(
sixtyFourBitHash
The 64-bit hash code returned from GetHashCode(long).
)
True if the solution with the provided hash has been cancelled.

IsCancelled

#
Gets whether a specific solution has been cancelled. There is at present no way to check whether an id is still running or whether it has completed.
public static bool IsCancelled(
id
Id to check.
)
True if the solution with the provided ID has been cancelled.

ToString

#
Returns the fully qualified type name of this instance.
public override string ToString()
The fully qualified type name.

Operators

OperationResultDescription
SolutionId==SolutionIdboolTest two solutions for equality. Invalid solutions are not equal to anything, even other invalid solutions.
SolutionId>SolutionIdboolTest two solutions for greater-than-ness. Invalid solutions are smaller than valid solutions, older valid solutions are smaller than newer valid solutions.
SolutionId>=SolutionIdboolTest two solutions for equality or greater-than-ness. Invalid solutions are smaller than valid solutions, older valid solutions are smaller than newer valid solutions.
SolutionId!=SolutionIdboolTest two solutions for inequality. Invalid solutions are not equal to anything, even other invalid solutions.
SolutionId<SolutionIdboolTest two solutions for smaller-than-ness. Invalid solutions are smaller than valid solutions, older valid solutions are smaller than newer valid solutions.
SolutionId<=SolutionIdboolTest two solutions for equality or smaller-than-ness. Invalid solutions are smaller than valid solutions, older valid solutions are smaller than newer valid solutions.