示例#1
0
 internal LinkChangeGroup(string groupName, LinkChangeGroupStatus status, bool isConflicted, long internalId, int age, int numOfTranslationRetries)
 {
     if (internalId <= 0)
     {
         throw new ArgumentOutOfRangeException("internalId", "internalId must be a positive integer");
     }
     Initialize(groupName, status, isConflicted, internalId, age, numOfTranslationRetries);
 }
示例#2
0
        private void Initialize(string groupName, LinkChangeGroupStatus status, bool isConflicted, long internalId, int age, int numOfTranslationRetries)
        {
            if (string.IsNullOrEmpty(groupName))
            {
                throw new ArgumentNullException("groupName");
            }

            m_actions          = new List <LinkChangeAction>();
            Status             = status;
            IsConflicted       = isConflicted;
            InternalId         = internalId;
            GroupName          = groupName;
            Age                = age;
            TranslationRetries = numOfTranslationRetries;
        }
示例#3
0
 public LinkChangeGroup(string groupName, LinkChangeGroupStatus status, bool isConflicted)
 {
     Initialize(groupName, status, isConflicted, INVALID_INTERNAL_ID, 0, 0);
 }