/// <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));
     }
 }