Пример #1
0
 public void UpdateEntityState(RecoveryJobStateBase entity)
 {
     if (_entityList.Contains(entity))
     {
         // change this logic
         _entityList.Remove(entity);// remove existing
     }
     _entityList.Add(entity);
 }
Пример #2
0
        public override bool Equals(object obj)
        {
            if (obj == null || GetType() != obj.GetType())
            {
                return(false);
            }
            RecoveryJobStateBase _val = obj as RecoveryJobStateBase;

            if (_identifier.Equals(_val.Identifier) && _entityName.Equals(_val._entityName))
            {
                return(true);
            }
            else
            {
                return(false);
            }
        }