Esempio n. 1
0
 private void FailOnStart()
 {
     try
     {
         stateManager.Start();
         Assert.Fail();
     }
     catch (IllegalStateTransitionException)
     {
         // Expected
     }
 }
Esempio n. 2
0
 /// <summary>
 /// Start the sending of events into the runtime egine.
 /// </summary>
 /// <throws>EPException in case of errors processing the events</throws>
 public virtual void Start()
 {
     if ((ExecutionPathDebugLog.IsEnabled) &&
         (Log.IsDebugEnabled))
     {
         Log.Debug(".start");
     }
     if (Runtime == null)
     {
         throw new EPException("Attempting to start an Adapter that hasn't had the epService provided");
     }
     _startTime = CurrentTime;
     if ((ExecutionPathDebugLog.IsEnabled) &&
         (Log.IsDebugEnabled))
     {
         Log.Debug(".start startTime==" + _startTime);
     }
     StateManager.Start();
     _sender.Runtime = Runtime;
     ContinueSendingEvents();
 }