Beispiel #1
0
        void LOGF()
        {
            Filter4 ftr = (Filter4)ServiceGetFilter();

            if (ftr.LinkGetTargetIdent() == "transFilter")
            {
                ftr.SendSTART();
                ftr.SendC(ReadC());
                ftr.SendEND_AND_WAIT("LOGF");
            }
            else
            {
                ftr.FH = File.AppendText(ReadC());
            }
            SendRETURN();
        }
Beispiel #2
0
 void IEvent.Event()
 {
     if (itms.Count <= 0)
     {
         ErrorSetCONTINUE();
     }
     else
     {
         FilterItmS it  = itms.Peek();
         Filter4    ftr = (Filter4)ServiceGetFilter();
         try  {
             ftr.LinkConnect();
             ftr.SendSTART();
             ftr.SendBDY(it.bdy);
             if (it.isTransaction)
             {
                 ftr.SendEND_AND_WAIT(it.token);
             }
             else
             {
                 ftr.SendEND(it.token);
             }
         } catch (Exception ex) {
             ftr.ErrorSet(ex);
             if (ftr.ErrorIsEXIT())
             {
                 ftr.ErrorReset();
                 return;
             }
             else
             {
                 ftr.ErrorWrite();
             }
         }
         itms.Dequeue();
     }
 }