public AuditLogEntry CreateAuditLogEntry(AuditEntryInfo info)
		{
			return new AuditLogEntry(
				info.Category,
				info.TimeStamp,
				info.HostName,
				info.Application,
				info.User,
				info.UserSessionId,
				info.Operation,
				info.Details);
		}
Пример #2
0
        /// <summary>
        /// Writes an entry to the audit log containing the specified information,
        /// on behalf of the specified application user.
        /// </summary>
        /// <param name="operation"></param>
        /// <param name="details"></param>
        /// <param name="user"></param>
        /// <param name="userSessionId"></param>
        public void WriteEntry(string operation, string details, string user, string userSessionId)
        {
            var entry = new AuditEntryInfo(
                _category,
                Platform.Time,
                Dns.GetHostName(),
                _application,
                user,
                userSessionId,
                operation,
                details);

            foreach (var sink in _sinks)
            {
                sink.WriteEntry(entry);
            }
        }
Пример #3
0
		public WriteEntryRequest(AuditEntryInfo logEntry)
		{
			LogEntry = logEntry;
		}
 /// <summary>
 /// Writes the specified entry to the sink.
 /// </summary>
 /// <param name="entry"></param>
 public void WriteEntry(AuditEntryInfo entry)
 {
     
 }
Пример #5
0
		public WriteEntryRequest(AuditEntryInfo logEntry)
		{
            Platform.CheckForNullReference(logEntry, "logEntry");
			LogEntry = logEntry;
		}