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); }
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); }); }
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); }