コード例 #1
0
ファイル: Reader.cs プロジェクト: cloudRoutine/GMac
 /// <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();
     }
 }
コード例 #2
0
 // 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);
 }
コード例 #3
0
 public override void PutMessage(MathLinkMessage msg)
 {
     impl.PutMessage(msg);
 }
コード例 #4
0
 public abstract void PutMessage(MathLinkMessage msg);