/// <summary> /// Either new or old entries can be null as long as 1 has a value. /// </summary> /// <param name="oldEntry"></param> /// <param name="newEntry"></param> public CombinedEntry(Entry oldEntry, Entry newEntry) { if(oldEntry != null) { m_oldEntries.Add(oldEntry); } if(newEntry != null) { m_newEntries.Add(newEntry); } if (newEntry == null && oldEntry == null) { throw new NullReferenceException("Both oldEntry and newEntry cannot be null"); } }
protected string generateKey(Entry entry) { if (entry == null) { throw new NullReferenceException("Cannot generate a key for a Null Entry"); } string key = entry.Request.Url.AbsoluteUri; foreach (QueryStringParameter queryString in entry.Request.QueryString) { key += "_" + queryString.Name + "_" + queryString.Value; } return key; }