Skip to content

IdComparer Methods

Compares participant identifiers by resource name and grain reference.

Equals(ParticipantId, ParticipantId)

View source
public bool Equals(ParticipantId x, ParticipantId y)
Determines whether two participant identifiers refer to the same resource.

Parameters

xParticipantId
The first participant identifier to compare.
yParticipantId
The second participant identifier to compare.

Returns

true when both identifiers have the same resource name and grain reference; otherwise, false.

GetHashCode(ParticipantId)

View source
public int GetHashCode(ParticipantId obj)
Returns a hash code derived from the participant's resource name and grain reference.

Parameters

objParticipantId
The participant identifier.

Returns

A hash code for obj.