Ejemplo n.º 1
0
        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);
        }
Ejemplo n.º 2
0
 public bool Equals(OrderActorMessageId other)
 {
     return(other != null && (SendingActorId.Equals(other.SendingActorId) && MessageId == other.MessageId));
 }