protected virtual AuditLogEntry CreateBaseEntry(SrmDocumentPair docPair) { return(MessageInfo.Type == MessageType.none ? AuditLogEntry.CreateEmptyEntry(docPair.OldDoc).ChangeAllInfo(new LogMessage[0]) : AuditLogEntry.CreateSingleMessageEntry(docPair.OldDoc, MessageInfo)); }
public void Add(params MessageInfo[] allInfoMessages) { Add(docPair => AuditLogEntry.CreateEmptyEntry(docPair.OldDoc).ChangeAllInfo(allInfoMessages)); }