Exemplo n.º 1
0
        /// <summary>
        /// Saves the specified log entry.
        /// </summary>
        /// <param name="logEntry">The log entry.</param>
        public void Save(LogEntry logEntry)
        {
            if (logEntry == null)
            {
                throw new ArgumentNullException(
                    "logEntry",
                    "Log entry must be given.");
            }

            SaveLogEntry(logEntry);
            logEntry.AssignId(GetId());
            if (logEntry.HttpState != null)
            {
                SaveHttpState(logEntry);
            }
        }