コード例 #1
0
        public void CheckExternalBlocks(CheckBlocksProgressEventHandler getProgressEvent)
        {
            if (_disposed)
            {
                throw new ObjectDisposedException(this.GetType().FullName);
            }
            if (!_isLoaded)
            {
                throw new AmoebaManagerException("AmoebaManager is not loaded.");
            }

            _cacheManager.CheckExternalBlocks(getProgressEvent);
        }
コード例 #2
0
        public void CheckInternalBlocks(CheckBlocksProgressEventHandler getProgressEvent)
        {
            this.Check();

            _cacheManager.CheckInternalBlocks((object sender, int badBlockCount, int checkedBlockCount, int blockCount, out bool isStop) =>
            {
                isStop = false;
                getProgressEvent?.Invoke(this, badBlockCount, checkedBlockCount, blockCount, out isStop);
            });
        }
コード例 #3
0
        public void CheckInternalBlocks(CheckBlocksProgressEventHandler getProgressEvent)
        {
            if (_disposed) throw new ObjectDisposedException(this.GetType().FullName);
            if (!_isLoaded) throw new AmoebaManagerException("AmoebaManager is not loaded.");

            _cacheManager.CheckInternalBlocks(getProgressEvent);
        }