//JAVA TO C# CONVERTER WARNING: Method 'throws' clauses are not available in C#: //ORIGINAL LINE: public void start() throws java.io.IOException public override void Start() { // Recovery has taken place before this, so the log file has been truncated to last known good tx // Just read header and move to the end long lastLogVersionUsed = _logVersionRepository.CurrentLogVersion; _channel = _logFiles.createLogChannelForVersion(lastLogVersionUsed, OpenMode.READ_WRITE, _context.getLastCommittedTransactionId); // Move to the end _channel.position(_channel.size()); _writer = new PositionAwarePhysicalFlushableChannel(_channel); }
//JAVA TO C# CONVERTER WARNING: Method 'throws' clauses are not available in C#: //ORIGINAL LINE: private void writeSomeData(java.io.File file, org.neo4j.helpers.collection.Visitor<org.neo4j.helpers.collection.Pair<org.neo4j.kernel.impl.transaction.log.entry.LogEntryWriter,System.Action<org.neo4j.kernel.impl.transaction.log.LogPositionMarker>>,java.io.IOException> visitor) throws java.io.IOException private void WriteSomeData(File file, Visitor <Pair <LogEntryWriter, System.Action <LogPositionMarker> >, IOException> visitor) { using (LogVersionedStoreChannel versionedStoreChannel = new PhysicalLogVersionedStoreChannel(FileSystemRule.get().open(file, OpenMode.READ_WRITE), _logVersion, CURRENT_LOG_VERSION), PositionAwarePhysicalFlushableChannel writableLogChannel = new PositionAwarePhysicalFlushableChannel(versionedStoreChannel)) { writeLogHeader(writableLogChannel, _logVersion, 2L); System.Action <LogPositionMarker> consumer = marker => { try { writableLogChannel.GetCurrentPosition(marker); } catch (IOException e) { throw new Exception(e); } }; LogEntryWriter first = new LogEntryWriter(writableLogChannel); visitor.Visit(Pair.of(first, consumer)); } }