Beispiel #1
0
 public void StopTracking()
 {
     lock (_inactivityProcessingLock)
     {
         CloseConfirmationModal();
         _inactivityBehavior = null;
         _userAbsenceHandler = null;
     }
 }
Beispiel #2
0
        public void StartTracking(InactivityBehavior inactivityBehavior, Action userAbsenceHandler)
        {
            CheckIfInitialized();

            lock (_inactivityProcessingLock)
            {
                StopTracking();
                UpdateLastActivityTimestamp();

                if (inactivityBehavior.IsDisabled)
                {
                    return;
                }

                _inactivityBehavior = inactivityBehavior;
                _userAbsenceHandler = userAbsenceHandler;
            }
        }