Пример #1
0
        /// <summary>
        /// Default constructor.
        /// </summary>
        /// <param name="logEntry">New log entry.</param>
        /// <exception cref="ArgumentNullException">Is raised when <b>logEntry</b> is null.</exception>
        public WriteLogEventArgs(LogEntry logEntry)
        {
            if (logEntry == null)
            {
                throw new ArgumentNullException("logEntry");
            }

            m_pLogEntry = logEntry;
        }
Пример #2
0
 /// <summary>
 /// Raises WriteLog event.
 /// </summary>
 /// <param name="entry">Log entry.</param>
 private void OnWriteLog(LogEntry entry)
 {
     if (WriteLog != null)
     {
         WriteLog(this, new WriteLogEventArgs(entry));
     }
 }