private void OnAlarmException(System.Object aSource, Mirasys.Clients.Gateway.SDK.Events.ExceptionEventArgs aException) { try { String errorMessage = aException.Exception != null ? aException.Exception.Message : String.Format("{0}: {1}", aException.ErrorName, aException.ErrorMessage); } catch (Exception ex) { } }
private void OnExceptionThrown(System.Object aSource, Mirasys.Clients.Gateway.SDK.Events.ExceptionEventArgs aArgs) { //ConsoleWriteLine("Session exception: " + aArgs.Exception.Message); InsertLog.AddLog("MirasysVCAInterfaceService OnExceptionThrown() : " + aArgs.Exception.Message); }