Ejemplo n.º 1
0
        /// <summary>
        /// 只有单个的
        /// </summary>
        /// <param name="sender"></param>
        /// <param name="eventArgs"></param>
        public void WriteDirectly(object sender, EventArgs eventArgs)
        {
            WriteLogManager writeLogManager = new WriteLogManager();

            writeLogManager.Add((s, e) => Write(sender, eventArgs, typeof(WriteLog)));
            writeLogManager.WriteLog(sender, eventArgs);
        }
Ejemplo n.º 2
0
        internal void Test()
        {
            WriteLog        writeLog        = new WriteLog();
            WriteLogManager writeLogManager = new WriteLogManager();

            writeLogManager.Add(writeLog.Write);
            writeLogManager.WriteLog(this, new ExceptionEventArgs("Test", new Exception("Exception")));
        }