コード例 #1
0
ファイル: AuditService.cs プロジェクト: UIKit0/ClearCanvas
		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();
		}
コード例 #2
0
ファイル: AuditService.cs プロジェクト: m-berkani/ClearCanvas
		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();
		}