Esempio n. 1
0
        public object Clone()
        {
            OperationId opId = new OperationId();

            opId.ElectionId = this.ElectionId;
            opId.ElectionBasedSequenceId = this.ElectionBasedSequenceId;
            opId.TimeStamp = this.TimeStamp;
            opId.Id        = this.Id;
            return(opId);
        }
Esempio n. 2
0
        public override bool Equals(object obj)
        {
            OperationId opId = obj as OperationId;

            if (opId != null)
            {
                if (opId.ElectionId == this.ElectionId && opId.ElectionBasedSequenceId == this.ElectionBasedSequenceId)
                {
                    return(true);
                }
                else
                {
                    return(false);
                }
            }
            else
            {
                return(false);
            }
        }