public void Add(T fieldId, object value) { string valueString = ContactLinkingStrings.GetValueString(value); if (valueString != null) { string fieldIdString = SchemaBasedLogEvent <T> .GetFieldIdString(fieldId); this.data[fieldIdString] = valueString; this.recalculateStringValue = true; } }
public override string ToString() { if (this.recalculateStringValue) { bool flag; string text = LogRowFormatter.FormatCollection(this.GetEventData(), true, out flag); this.stringValue = string.Format("S:EventId:{0};{1}", this.EventId, flag ? SchemaBasedLogEvent <T> .GetCsvEscapedString(text) : text); this.recalculateStringValue = false; } return(this.stringValue); }
public void LogSideConversationProcessingData(ParticipantSet parentReplyAllParticipants, ParticipantSet deliveredReplyAllParticipants) { SchemaBasedLogEvent <ConversationAggregationLogSchema.SideConversationProcessingData> schemaBasedLogEvent = new SchemaBasedLogEvent <ConversationAggregationLogSchema.SideConversationProcessingData>(); if (deliveredReplyAllParticipants.Count > 10) { schemaBasedLogEvent.Add(ConversationAggregationLogSchema.SideConversationProcessingData.ParentMessageReplyAllParticipantsCount, parentReplyAllParticipants.Count); schemaBasedLogEvent.Add(ConversationAggregationLogSchema.SideConversationProcessingData.DeliveredMessageReplyAllParticipantsCount, deliveredReplyAllParticipants.Count); } else { schemaBasedLogEvent.Add(ConversationAggregationLogSchema.SideConversationProcessingData.ParentMessageReplyAllDisplayNames, ExtensibleLogger.FormatPIIValue(this.ConvertParticipantsToLogString(parentReplyAllParticipants))); schemaBasedLogEvent.Add(ConversationAggregationLogSchema.SideConversationProcessingData.ParentMessageReplyAllParticipantsCount, parentReplyAllParticipants.Count); schemaBasedLogEvent.Add(ConversationAggregationLogSchema.SideConversationProcessingData.DeliveredMessageReplyAllDisplayNames, ExtensibleLogger.FormatPIIValue(this.ConvertParticipantsToLogString(deliveredReplyAllParticipants))); schemaBasedLogEvent.Add(ConversationAggregationLogSchema.SideConversationProcessingData.DeliveredMessageReplyAllParticipantsCount, deliveredReplyAllParticipants.Count); } this.LogEvent(schemaBasedLogEvent); }