コード例 #1
0
 internal TimerPool_Item(TimerPool pool, TimerPoolItemCallback callback, object state, int timerInterval)
 {
     _pool                = pool;
     _callback            = callback;
     _state               = state;
     _timerInterval       = timerInterval;
     CurrentTimeRemaining = timerInterval;
 }
コード例 #2
0
        public void Close()
        {
            if (_pool == null || (_pool.IsDisposed || this._isDisposed))
            {
                return;
            }

            _isStop = true;

            _pool.Remove(this);

            _callback      = null;
            _pool          = null;
            _timerInterval = 0;



            _isDisposed = true;
        }