/// <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;
        }
Ejemplo n.º 2
0
 /// <summary>
 /// Raises WriteLog event.
 /// </summary>
 /// <param name="entry">Log entry.</param>
 private void OnWriteLog(LogEntry entry)
 {
     if(this.WriteLog != null){
         this.WriteLog(this,new WriteLogEventArgs(entry));
     }
 }