Example #1
0
        public void RemoveFilter(FileAccessClient filter)
        {
            if (_activated)
            {
                throw new InvalidOperationException();
            }

            filter.SetHooks(null);
            _filters.Remove(filter);
        }
Example #2
0
        public void AddClient(FileAccessClient filter)
        {
            if (_activated)
            {
                throw new InvalidOperationException();
            }

            filter.SetHooks(_hooks);
            _filters.Add(filter);
        }