public void Trace(ConversationIndex index) { Util.ThrowOnNullArgument(index, "index"); StringBuilder stringBuilder = new StringBuilder(0); stringBuilder.Append("["); stringBuilder.Append(string.Format("{0}={1}", "CID", index.Guid)); stringBuilder.Append(";"); stringBuilder.Append(string.Format("{0}={1}", "IDXHEAD", GlobalObjectId.ByteArrayToHexString(index.Header))); stringBuilder.Append(";"); stringBuilder.Append(string.Format("{0}={1}", "IDXCOUNT", index.Components.Count)); stringBuilder.Append("]"); this.Trace("II", stringBuilder.ToString()); }
private object[] FindItemSnapshotByGoid(GlobalObjectId goid, bool shouldCheckCleanGoid) { ExTraceGlobals.SharingTracer.TraceDebug <string>((long)this.GetHashCode(), "CalendarImporter::FindItemSnapshotByGoid. Looking for matched item of GOID:{0}.", GlobalObjectId.ByteArrayToHexString(goid.Bytes)); object[] array = this.itemSnapshots.FirstOrDefault((object[] item) => Util.ValueEquals(goid.Bytes, item[this.QueryIndexGoid] as byte[])); if (shouldCheckCleanGoid && array == null && !goid.IsCleanGlobalObjectId) { ExTraceGlobals.SharingTracer.TraceDebug <string>((long)this.GetHashCode(), "CalendarImporter::FindItemSnapshotByGoid. No match found according to goid then check the clean GOID:{0}.", GlobalObjectId.ByteArrayToHexString(goid.CleanGlobalObjectIdBytes)); array = this.itemSnapshots.FirstOrDefault((object[] item) => Util.ValueEquals(goid.CleanGlobalObjectIdBytes, item[this.QueryIndexGoid] as byte[]) && true.Equals(item[this.QueryIndexRecurring])); } return(array); }
public override string ToString() { return(GlobalObjectId.ByteArrayToHexString(this.bytes)); }