Beispiel #1
0
 void SignalInactivity(object state)
 {
     _signalResource?.Signal();
     ConditionUpdated();
     Interlocked.CompareExchange(ref _activityStarted, 0, 1);
     _receiveIdleTimer.Stop();
 }
        void OnActivityTimeout(object state)
        {
            Task.Run(() => NotifyInactive());

            _inactivityTimer.Stop();
            Interlocked.CompareExchange(ref _activityDetected, 0, 1);
        }