Skip to content

ParticipantId Methods

Identifies a transaction participant and the protocol roles which it supports.

Equals(ParticipantId)

View source
public bool Equals(ParticipantId other)
Indicates whether the current object is equal to another object of the same type.

Parameters

otherParticipantId
An object to compare with this object.

Returns

true if the current object is equal to the other parameter; otherwise, false.

Equals(object?)

override
View source
public override bool Equals(object? obj)
Indicates whether this instance and a specified object are equal.

Parameters

objobject?
The object to compare with the current instance.

Returns

true if obj and this instance are the same type and represent the same value; otherwise, false.

GetHashCode

override
View source
public override int GetHashCode()
Returns the hash code for this instance.

Returns

A 32-bit signed integer that is the hash code for this instance.

ToString

override
View source
public override string ToString()
Returns a diagnostic representation of this participant.

Returns

A string containing the participant name and grain reference.

operator ==(ParticipantId, ParticipantId)

static
View source
public static bool operator ==(ParticipantId left, ParticipantId right)
Determines whether two transaction participant identifiers and their supported roles are equal.

Parameters

leftParticipantId
rightParticipantId

operator !=(ParticipantId, ParticipantId)

static
View source
public static bool operator !=(ParticipantId left, ParticipantId right)
Determines whether two transaction participant identifiers or their supported roles are unequal.

Parameters

leftParticipantId
rightParticipantId