예제 #1
0
        //如果发生更改,则触发事件
        protected void OnChanged(object sender, FileSystemEventArgs e)
        {
            m_IsTrigger = true;

            //重新设置定时器的触发间隔,并且仅仅触发一次
            m_timer.Change(TimeoutMillis, Timeout.Infinite);

            mType = cGlobalParas.MessageType.ReloadPlan;
        }
예제 #2
0
        //监控文件失败时间按,进行触发
        protected void OnError(object sender, ErrorEventArgs e)
        {
            m_IsTrigger = true;

            //重新设置定时器的触发间隔,并且仅仅触发一次
            m_timer.Change(TimeoutMillis, Timeout.Infinite);

            mType = cGlobalParas.MessageType.MonitorFileFaild;
        }
        //����������ģ��򴥷��¼�
        protected void OnChanged(object sender, FileSystemEventArgs e)
        {
            m_IsTrigger = true;

            //�������ö�ʱ���Ĵ����������ҽ�������һ��
            m_timer.Change(TimeoutMillis, Timeout.Infinite);

            mType = cGlobalParas.MessageType.ReloadPlan;
        }
 public cListenInitializedEventArgs(cGlobalParas.MessageType MessType)
 {
     m_MessType = MessType;
 }
예제 #5
0
 public cRunTaskEventArgs(cGlobalParas.MessageType MessType, string RunName, string RunPara)
 {
     base.MessType = MessType;
     m_RunName     = RunName;
     m_RunPara     = RunPara;
 }
예제 #6
0
 public cCommandEventArgs(cGlobalParas.MessageType MessType)
 {
     base.MessType = MessType;
 }
예제 #7
0
 public cListenInitializedEventArgs(cGlobalParas.MessageType MessType)
 {
     m_MessType = MessType;
 }
        //����ļ�ʧ��ʱ�䰴�����д���
        protected void OnError(object sender, ErrorEventArgs e)
        {
            m_IsTrigger = true;

            //�������ö�ʱ���Ĵ����������ҽ�������һ��
            m_timer.Change(TimeoutMillis, Timeout.Infinite);

            mType = cGlobalParas.MessageType.MonitorFileFaild;
        }