Example #1
0
 //传递事件
 private void TransferEvent(RunMessage runmsg)
 {
     if (ManageEvent != null)
     {
         runmsg.PutMessageSender(this);
         ManageEvent(runmsg);
     }
 }
Example #2
0
        public void Log_RunMessage(RunMessage msg)
        {
            switch (msg.Type)
            {
                case RunMessage.RunType.OK:
                    this.log.Debug(msg.MessageString);
                    break;

                case RunMessage.RunType.TIP:
                    this.log.Debug(msg.MessageString);
                    break;

                case RunMessage.RunType.ERR:
                    this.log.Error(msg.MessageString);
                    break;

                case RunMessage.RunType.WAIT:
                    this.log.Error(msg.MessageString);
                    break;
            }
        }
Example #3
0
 public void ThrowEvent(RunMessage.RunType eType, string eMsg)
 {
     if (ManageEvent != null)
         ManageEvent(new RunMessage(eType, eMsg, this));
 }
Example #4
0
 private void aqiRunner_RunEvent(RunMessage m)
 {
     TransferEvent(m);
 }
Example #5
0
 //抛出事件
 public bool ThrowEvent(RunMessage eRunMessage)
 {
     if (ManageEvent != null)
     {
         ManageEvent(eRunMessage);
         return true;
     }
     else
     {
         return false;
     }
 }
Example #6
0
 private void aqiRunner_RunEvent(RunMessage m)
 {
     this.TransferEvent(m);
     Remind.Log_RunMessage(m);
 }
Example #7
0
 public bool ThrowWaitEvent(string eMsg, ISrcUrl eSrcUrl)
 {
     if (RunEvent != null)
     {
         RunMessage rm = new RunMessage(RunMessage.RunType.WAIT, eMsg, this);
         rm.AttachObject = (eSrcUrl as IMakeParam).PL;
         RunEvent(rm);
         return true;
     }
     return false;
 }
Example #8
0
 private void node_RunEvent(RunMessage m)
 {
     AqiManage.Remind.Log_RunMessage(m);
 }
Example #9
0
 /// <summary>
 /// 接收事件
 /// </summary>
 /// <param name="m"></param>
 static void Log_Event(RunMessage m)
 {
     Console.WriteLine(m.TimeString + " " + m.SenderMessage);
     if (m.Type == RunMessage.RunType.WAIT)
     {
         string str = Console.ReadLine();
     }
 }