//JAVA TO C# CONVERTER WARNING: Method 'throws' clauses are not available in C#: //ORIGINAL LINE: private void closeAndCollectExceptions(int channelIndex, java.io.IOException exception) throws java.io.IOException private void CloseAndCollectExceptions(int channelIndex, IOException exception) { if (channelIndex == _channels.Length) { if (exception != null) { throw exception; } return; } try { _channels[channelIndex].close(); } catch (IOException e) { if (exception == null) { exception = e; } else { exception.addSuppressed(e); } } CloseAndCollectExceptions(channelIndex + 1, exception); }
/// <summary> /// Note: Must be called while synchronizing on the MuninnPageCache instance. /// </summary> //JAVA TO C# CONVERTER WARNING: Method 'throws' clauses are not available in C#: //ORIGINAL LINE: private void ensureThreadsInitialised() throws java.io.IOException private void EnsureThreadsInitialised() { if (_threadsInitialised) { return; } _threadsInitialised = true; try { _scheduler.schedule(Group.PAGE_CACHE, new EvictionTask(this)); } catch (Exception e) { IOException exception = new IOException(e); try { Close(); } catch (Exception closeException) { exception.addSuppressed(closeException); } throw exception; } }