private void OpcUaClienthelper_OnErrorHappened(object sender, OpcUaHelper.OpcUaErrorEventArgs e)
        {
            string message = DateTime.Now.ToString(dateString) + e.Message + (e.Exception == null ? "" : e.Exception.StackTrace) + System.Environment.NewLine;

            try
            {
                asyncUpMessage(message);
            }
            catch (AggregateException ex)
            {
                //asyncUpMessage(DateTime.Now.ToString(dateString) + ex.Message + System.Environment.NewLine);
            }
        }
Beispiel #2
0
 private void OpcUaClientHelper_OnErrorHappened(object sender, OpcUaHelper.OpcUaErrorEventArgs e)
 {
     LogHelper.Logger.Error("OPCUA通讯发生错误", e.Exception);
 }