Exemple #1
0
        private void ResetState()
        {
            // Instance is returned to pool: reset state.
            HooksEnabled          = true;
            _currentSaveOperation = null;

            if (_dataProvider != null)
            {
                _dataProvider.Dispose();
                _dataProvider = null;
            }
        }
Exemple #2
0
        private void ResetState()
        {
            // Instance is returned to pool: reset state.
            MinHookImportance     = HookImportance.Normal;
            SuppressCommit        = false;
            DeferCommit           = false;
            _currentSaveOperation = null;
            _hookHandler          = null;

            if (_dataProvider != null)
            {
                _dataProvider.Dispose();
                _dataProvider = null;
            }
        }