protected void RaiseEventTraceLog(DateTime timeStamp, string strSml, TraceLogEventArgs.DirectionType direction) { if (TraceLog != null) { m_SyncContext.Post(Post_Evemt_TraceLog, new TraceLogEventArgs(timeStamp, strSml, direction)); } }
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); }