Example #1
0
 protected void RaiseEventTraceLog(DateTime timeStamp, string strSml, TraceLogEventArgs.DirectionType direction)
 {
     if (TraceLog != null)
     {
         m_SyncContext.Post(Post_Evemt_TraceLog, new TraceLogEventArgs(timeStamp, strSml, direction));
     }
 }
Example #2
0
        private void TraceSmlLog(DateTime timeStamp, SecsMessageBase msg, TraceLogEventArgs.DirectionType direct)
        {
            string strSml = m_SmlBuilder.ToSmlString(msg);

            //keep log to file

            //fire event
            RaiseEventTraceLog(timeStamp, strSml, direct);
        }