private void MtConnect() { try { // Create and start MT Connect agent (in dll assembly) agent = new MTConnectAgentCore.Agent(); agent.Start(nMTCPort); agent.hst.userCommandDelegate += new MTConnectAgentCore.UserCommandDelegate(MyUserCommandDelegate); } catch (Exception e) { LogMessage("MT Connect Agent create or configuration Error: " + e.Message, -1); Environment.Exit(-1); } }
private void MtConnect() { try { // Create and start MT Connect agent (in dll assembly) agent = new MTConnectAgentCore.Agent(); agent.Start(nMTCPort); agent.hst.userCommandDelegate += new MTConnectAgentCore.UserCommandDelegate(MyUserCommandDelegate); } catch (Exception e) { LogMessage("MT Connect Agent create or configuration Error: " + e.Message, -1); Environment.Exit(-1); } }