public WriteEntryResponse WriteEntry(WriteEntryRequest request) { Platform.CheckForNullReference(request, "request"); Platform.CheckMemberIsSet(request.LogEntry, "LogEntry"); AuditLogEntryAssembler assembler = new AuditLogEntryAssembler(); AuditLogEntry logEntry = assembler.CreateAuditLogEntry(request.LogEntry); logEntry.ServerReceivedTimeStamp = Platform.Time; // save the log entry PersistenceContext.Lock(logEntry, DirtyState.New); return new WriteEntryResponse(); }
public WriteEntryResponse WriteEntry(WriteEntryRequest request) { if (request == null) throw new FaultException(SR.ErrorNullAuditRequest); if (request.LogEntry == null) throw new FaultException(SR.ErrorEmptyAuditRequest); AuditLogEntryAssembler assembler = new AuditLogEntryAssembler(); AuditLogEntry logEntry = assembler.CreateAuditLogEntry(request.LogEntry); logEntry.ServerReceivedTimeStamp = Platform.Time; // save the log entry PersistenceContext.Lock(logEntry, DirtyState.New); return new WriteEntryResponse(); }