Example #1
0
 /// <summary>
 /// This method is called when the state of the workspace changes.
 /// </summary>
 public virtual void OnKwsStatusChanged(KwsRunLevel newRunLevel, bool newCaughtUpFlag)
 {
     // Update the application control.
     if (newRunLevel != NotifiedRunLevel || newCaughtUpFlag != NotifiedCaughtUpFlag)
     {
         NotifiedRunLevel = newRunLevel;
         NotifiedCaughtUpFlag = newCaughtUpFlag;
         if (OnNeedToUpdateControl != null) OnNeedToUpdateControl(this, null);
     }
 }
Example #2
0
        public override void OnKwsStatusChanged(KwsRunLevel newRunLevel, bool newCaughtUpFlag)
        {
            base.OnKwsStatusChanged(newRunLevel, newCaughtUpFlag);

            // We have a share.
            if (Share != null)
            {
                // We were online and we're no longer online; make sure
                // we're not waiting for messages that won't come.
                if (NotifiedRunLevel == KwsRunLevel.Online && newRunLevel != KwsRunLevel.Online)
                    Share.OnNoLongerOnline();

                // Run the KFS pipeline on state changes.
                if (NotifiedRunLevel != newRunLevel || NotifiedCaughtUpFlag != newCaughtUpFlag)
                    Share.Pipeline.Run("Notification received", false);
            }
        }