Ejemplo n.º 1
0
		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();
		}
Ejemplo n.º 2
0
        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());
        }
Ejemplo n.º 3
0
		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();
		}
Ejemplo n.º 4
0
        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());
        }