/// <summary> /// Send an operator acknowledge message. /// </summary> /// <remarks>This request allows the operator to move to the next step of an interactive test.</remarks> /// <exception cref="CommunicationException">Thrown if the error code returned from the call to the m_SelfTestMarshal.SendOperatorAcknowledge() method /// is not CommunicationError.Success.</exception> public void SendOperatorAcknowledge() { Debug.Assert(m_MutexCommuncationInterface != null, "CommunicationSelfTest.SendOperatorAcknowledge() - [m_MutexCommuncationInterface != null]"); CommunicationError errorCode = CommunicationError.UnknownError; try { m_MutexCommuncationInterface.WaitOne(DefaultMutexWaitDurationMs, false); errorCode = m_SelfTestMarshal.SendOperatorAcknowledge(); } catch (Exception) { errorCode = CommunicationError.SystemException; throw new CommunicationException("CommunicationSelfTest.SendOperatorAcknowledge()", errorCode); } finally { m_MutexCommuncationInterface.ReleaseMutex(); } if (DebugMode.Enabled == true) { DebugMode.SendOperatorAcknowledge_t sendOperatorAcknowledge = new DebugMode.SendOperatorAcknowledge_t(errorCode); DebugMode.Write(sendOperatorAcknowledge.ToXML()); } if (errorCode != CommunicationError.Success) { throw new CommunicationException("CommunicationSelfTest.SendOperatorAcknowledge()", errorCode); } }
/// <summary> /// Send an operator acknowledge message. /// </summary> /// <remarks>This request allows the operator to move to the next step of an interactive test.</remarks> /// <exception cref="CommunicationException">Thrown if the error code returned from the call to the PTUDLL32.SendOperatorAcknowledge() method /// is not CommunicationError.Success.</exception> public void SendOperatorAcknowledge() { Debug.Assert(m_MutexCommuncationInterface != null, "CommunicationSelfTest.SendOperatorAcknowledge() - [m_MutexCommuncationInterface != null]"); CommunicationError errorCode = CommunicationError.UnknownError; try { m_MutexCommuncationInterface.WaitOne(DefaultMutexWaitDurationMs, false); errorCode = m_SelfTestMarshal.SendOperatorAcknowledge(); } catch (Exception) { errorCode = CommunicationError.SystemException; throw new CommunicationException("CommunicationSelfTest.SendOperatorAcknowledge()", errorCode); } finally { m_MutexCommuncationInterface.ReleaseMutex(); } if (DebugMode.Enabled == true) { DebugMode.SendOperatorAcknowledge_t sendOperatorAcknowledge = new DebugMode.SendOperatorAcknowledge_t(errorCode); DebugMode.Write(sendOperatorAcknowledge.ToXML()); } if (errorCode != CommunicationError.Success) { throw new CommunicationException("CommunicationSelfTest.SendOperatorAcknowledge()", errorCode); } }