/// <summary> /// Invoked when an event is received /// </summary> /// <param name="eventType">The type of event received</param> public void EventReceived(BehaviorResponseEventType eventType) { WrapErr.ChkDisposed(this.disposed, 50080); switch (eventType) { case BehaviorResponseEventType.MsgArrived: // We ignore messages received and depend only on the periodic timer break; case BehaviorResponseEventType.PeriodicWakeup: this.OnPeriodicTimer(); break; case BehaviorResponseEventType.TerminateRequest: this.wakeEvent.Set(); break; default: Log.Error(50081, String.Format("The Behavior Response Event Type '{0}' is not Supported", eventType)); break; } }
/// <summary> /// Invoked when an event is received /// </summary> /// <param name="eventType">The type of event received</param> public void EventReceived(BehaviorResponseEventType eventType) { WrapErr.ChkDisposed(this.disposed, 50080); switch (eventType) { case BehaviorResponseEventType.MsgArrived: // We ignore messages received and depend only on the periodic timer break; case BehaviorResponseEventType.PeriodicWakeup: this.OnPeriodicTimer(); break; case BehaviorResponseEventType.TerminateRequest: this.wakeEvent.Set(); break; default: Log.Error(50081, String.Format("The Behavior Response Event Type '{0}' is not Supported", eventType)); break; } }