Exemplo n.º 1
0
 private void OnSockMsgEvent(SocketEventArgs e)
 {
     if (SockMsgEvent != null)
     {
         SockMsgEvent(this, e);
     }
 }
 void MSMQMgr_MSMQEvent(object sender, SocketEventArgs e)
 {
     if (e.msmqEntity != null && e.msmqEntity.MsgType == ConstValue.MSMQTYPE.Data_OnLineState)
     {
         InvokeShowGridTerData(e.msmqEntity.lstOnLine);
         OnLineTers = e.msmqEntity.lstOnLine;
     }
 }
Exemplo n.º 3
0
 void MSMQMgr_MSMQEvent(object sender, SocketEventArgs e)
 {
     if (e.msmqEntity != null)
     {
         if (e.msmqEntity.MsgType == Entity.ConstValue.MSMQTYPE.Msg_Public)
         {
             SetCtrlMsg(e.msmqEntity.Msg);
         }
         else if (e.msmqEntity.MsgType == Entity.ConstValue.MSMQTYPE.Msg_Socket && showSocketMsg)
         {
             SetCtrlMsg(e.msmqEntity.Msg);
         }
         else if (e.msmqEntity.MsgType == Entity.ConstValue.MSMQTYPE.Msg_HTTP && showHttpMsg)
         {
             SetCtrlMsg(e.msmqEntity.Msg);
         }
         else if (e.msmqEntity.MsgType == Entity.ConstValue.MSMQTYPE.Msg_Err && showErrMsg)
         {
             SetCtrlMsg(e.msmqEntity.Msg);
         }
     }
 }