/// <summary> /// This is what causes .NET to quit when user selects "Kill linked program" from <i>Mathematica</i>'s Interrupt dialog. /// </summary> /// <param name="msg"></param> /// public static void terminateMsgHandler(MathLinkMessage msg) { if (msg == MathLinkMessage.Terminate) { readerThread.Abort(); } }
// This MessageHandler method supports the ability for code called from M to call ml.WasInterrupted. private void interruptDetector(MathLinkMessage msg) { WasInterrupted = (msg == MathLinkMessage.Abort || msg == MathLinkMessage.Interrupt); }
public override void PutMessage(MathLinkMessage msg) { impl.PutMessage(msg); }
public abstract void PutMessage(MathLinkMessage msg);