public int CompareTo(OrderActorMessageId other) { if (string.Compare(SendingActorId.ToString(), other.SendingActorId.ToString(), StringComparison.Ordinal) > 1) { return(1); } if (string.Compare(SendingActorId.ToString(), other.SendingActorId.ToString(), StringComparison.Ordinal) < 1) { return(-1); } if (MessageId > other.MessageId) { return(1); } if (MessageId < other.MessageId) { return(-1); } return(0); }
public bool Equals(OrderActorMessageId other) { return(other != null && (SendingActorId.Equals(other.SendingActorId) && MessageId == other.MessageId)); }