Esempio n. 1
0
        /// <summary>
        /// If a object Update ID was found, we need to check if that object already exists.
        /// If it doesn't, a new result is created, and returned. Otherwise, the existing entry
        /// is returned.
        /// </summary>
        /// <param name="result">The result up till now</param>
        /// <param name="entry">The entry that you found the object updated ID in</param>
        /// <param name="objectUpdateID">The object update id to search for</param>
        /// <returns></returns>
        private BlissHiveObjectLogParseResultEntry HandleFoundObjectUpdateID(
            LinkedList <LogParseResultEntry> result,
            BlissHiveLogEntry entry,
            String objectUpdateID,
            out Boolean addEntryToResult)
        {
            BlissHiveObjectLogParseResultEntry existingObject = null;

            // Check if the object already exists
            if ((existingObject = this.GetObject(result, objectUpdateID)) != null)
            {
                // The object exists!
                addEntryToResult = false;
                return(existingObject);
            }
            else
            {
                // Didn't exist, return a new result
                addEntryToResult = true;
                return(new BlissHiveObjectLogParseResultEntry(entry, new BlissHiveLogObject(objectUpdateID)));
            }
        }
 /// <summary>
 /// If a object Update ID was found, we need to check if that object already exists.
 /// If it doesn't, a new result is created, and returned. Otherwise, the existing entry
 /// is returned.
 /// </summary>
 /// <param name="result">The result up till now</param>
 /// <param name="entry">The entry that you found the object updated ID in</param>
 /// <param name="objectUpdateID">The object update id to search for</param>
 /// <returns></returns>
 private BlissHiveObjectLogParseResultEntry HandleFoundObjectUpdateID(
         LinkedList<LogParseResultEntry> result, 
         BlissHiveLogEntry entry, 
         String objectUpdateID,
         out Boolean addEntryToResult)
 {
     BlissHiveObjectLogParseResultEntry existingObject = null;
     // Check if the object already exists
     if ((existingObject = this.GetObject(result, objectUpdateID)) != null) {
         // The object exists!
         addEntryToResult = false;
         return existingObject;
     } else {
         // Didn't exist, return a new result
         addEntryToResult = true;
         return new BlissHiveObjectLogParseResultEntry(entry, new BlissHiveLogObject(objectUpdateID));
     }
 }