当前位置: 首页>>代码示例>>C#>>正文


C# IQEvent类代码示例

本文整理汇总了C#中IQEvent的典型用法代码示例。如果您正苦于以下问题:C# IQEvent类的具体用法?C# IQEvent怎么用?C# IQEvent使用的例子?那么恭喜您, 这里精选的类代码示例或许可以为您提供帮助。


IQEvent类属于命名空间,在下文中一共展示了IQEvent类的15个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的C#代码示例。

示例1: RaiseEventManagerDispatchException

 protected void RaiseEventManagerDispatchException(EventManagerDispatchExceptionHandler handler, IQEventManager eventManager, Exception ex, IQHsm hsm, IQEvent ev)
 {
     if (handler != null)
     {
         handler (eventManager, ex, hsm, ev);
     }
 }
开发者ID:poobalan-arumugam,项目名称:stateproto,代码行数:7,代码来源:QEventManagerEventsBase.cs

示例2: DoDispatchException

 protected virtual void DoDispatchException(IQHsm hsm, Exception ex, MethodInfo stateMethod, IQEvent ev)
 {
     if (OnDispatchException (hsm, ex, stateMethod, ev))
     {
         RaiseDispatchException (DispatchException, hsm, ex, stateMethod, ev);
     }
 }
开发者ID:poobalan-arumugam,项目名称:stateproto,代码行数:7,代码来源:QHsmLifeCycleManagerWithHsmEventsBase.cs

示例3: DoEventManagerDispatchException

 protected void DoEventManagerDispatchException(IQEventManager eventManager, Exception ex, IQHsm hsm, IQEvent ev)
 {
     if (OnEventManagerDispatchException (eventManager, ex, hsm, ev))
     {
         RaiseEventManagerDispatchException (EMDispatchException, eventManager, ex, hsm, ev);
     }
 }
开发者ID:poobalan-arumugam,项目名称:stateproto,代码行数:7,代码来源:QEventManagerEventsBase.cs

示例4: DoPolledEvent

 protected void DoPolledEvent(IQEventManager eventManager, IQHsm hsm, IQEvent ev, PollContext pollContext)
 {
     if (OnPolledEvent (eventManager, hsm, ev, pollContext))
     {
         RaisePolledEvent (eventManager, PolledEvent, hsm, ev, pollContext);
     }
 }
开发者ID:poobalan-arumugam,项目名称:stateproto,代码行数:7,代码来源:QHsmLifeCycleManagerWithHsmEventsBaseAndEventManagerBase.cs

示例5: DispatchExceptionFailureEventArgs

 public DispatchExceptionFailureEventArgs(Exception ex, IQHsm hsm, System.Reflection.MethodInfo stateMethod, IQEvent ev)
 {
     _Exception = ex;
     _Hsm = hsm;
     _StateMethod = stateMethod;
     _OriginalEvent = ev;
 }
开发者ID:poobalan-arumugam,项目名称:stateproto,代码行数:7,代码来源:DispatchExceptionFailureEventArgs.cs

示例6: DoUnhandledTransition

 protected void DoUnhandledTransition(IQHsm hsm, MethodInfo stateMethod, IQEvent qEvent)
 {
     if (OnUnhandledTransition (hsm, stateMethod, qEvent))
     {
         RaiseUnhandledTransition (UnhandledTransition, hsm, stateMethod, qEvent);
     }
 }
开发者ID:poobalan-arumugam,项目名称:stateproto,代码行数:7,代码来源:QHsmLifeCycleManagerWithHsmEventsBase.cs

示例7: HsmEventHolder

 public HsmEventHolder(QEventManagerBase eventManager, IQHsm hsm, IQEvent ev)
 {
     _EventManager = eventManager;
     _Hsm = hsm;
     _Event = ev;
     _Principal = System.Threading.Thread.CurrentPrincipal;
 }
开发者ID:poobalan-arumugam,项目名称:stateproto,代码行数:7,代码来源:HsmEventHolder.cs

示例8: s02

 protected override QState s02(IQEvent qEvent)
 {
     switch (qEvent.QSignal)
     {
         case (int)QSignals.Init:    CWrite("s02-INIT;");  InitializeState(m_s021); return null;
     }
     return base.s02(qEvent);
 }
开发者ID:poobalan-arumugam,项目名称:stateproto,代码行数:8,代码来源:QHsmDerived3.cs

示例9: s1

 protected override QState s1(IQEvent qEvent)
 {
     switch (qEvent.QSignal)
     {
         case (int)MyQSignals.B_Sig: Console.Write("s1-B-overriden;"); return null;
     }
     // Everything else we pass on to the state handler of the base class
     return base.s1(qEvent);
 }
开发者ID:poobalan-arumugam,项目名称:stateproto,代码行数:9,代码来源:QHsmTestDerived.cs

示例10: s021

 protected QState s021(IQEvent qEvent)
 {
     switch (qEvent.QSignal)
     {
         case (int)QSignals.Entry:   CWrite("s021-ENTRY;"); return null;
         case (int)QSignals.Exit:    CWrite("s021-EXIT;");  return null;
     }
     return m_s02;
 }
开发者ID:poobalan-arumugam,项目名称:stateproto,代码行数:9,代码来源:QHsmDerived3.cs

示例11: s02

 protected virtual QState s02(IQEvent qEvent)
 {
     switch (qEvent.QSignal)
     {
         case (int)QSignals.Entry:   Console.Write("s02-ENTRY;"); return null;
         case (int)QSignals.Exit:    Console.Write("s02-EXIT;");  return null;
         case (int)MyQSignals.Sig2:  Console.Write("s02-Sig2;");  TransitionTo(m_s01, ref s_Tran_s02_s01);   return null;
     }
     return m_s0;
 }
开发者ID:poobalan-arumugam,项目名称:stateproto,代码行数:10,代码来源:QHsmBase1.cs

示例12: s01

 protected QState s01(IQEvent qEvent)
 {
     switch (qEvent.QSignal)
     {
         case (int)QSignals.Entry:   Console.Write("s01-ENTRY;"); return null;
         case (int)QSignals.Exit:    Console.Write("s01-EXIT;");  return null;
         case (int)MyQSignals.Sig1:  Console.Write("s01-Sig1;");  TransitionTo(m_s02, ref s_Tran_s01_s02);   return null;
     }
     return m_s0;
 }
开发者ID:poobalan-arumugam,项目名称:stateproto,代码行数:10,代码来源:QHsmBase1.cs

示例13: s0

 protected QState s0(IQEvent qEvent)
 {
     switch (qEvent.QSignal)
     {
         case (int)QSignals.Entry:   Console.Write("s0-ENTRY;"); return null;
         case (int)QSignals.Exit:    Console.Write("s0-EXIT;");  return null;
         case (int)QSignals.Init:    Console.Write("s0-INIT;");  InitializeState(m_s01); return null;
     }
     return this.TopState;
 }
开发者ID:poobalan-arumugam,项目名称:stateproto,代码行数:10,代码来源:QHsmBase1.cs

示例14: AsyncDispatchFront

 public void AsyncDispatchFront(IQHsm hsm, IQEvent ev)
 {
     lock (_QLock)
     {
     #warning Using a stack will alway push the most recent event to the front - thus reversing instead of maintaining "insert" order
         HsmEventHolder holder = new HsmEventHolder (this, hsm, ev);
         _FrontStack.Push (holder);
     }
     _WaitHandle.Set ();
 }
开发者ID:poobalan-arumugam,项目名称:stateproto,代码行数:10,代码来源:QEventManagerBase.cs

示例15: Send

 public void Send(IQEvent ev)
 {
     if (OnQEvents (ev))
     {
         if (QEvents != null)
         {
             QEvents (this, ev);
         }
     }
 }
开发者ID:poobalan-arumugam,项目名称:stateproto,代码行数:10,代码来源:QPort.cs


注:本文中的IQEvent类示例由纯净天空整理自Github/MSDocs等开源代码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。