//JAVA TO C# CONVERTER WARNING: Method 'throws' clauses are not available in C#: //ORIGINAL LINE: public boolean visit(ReadableClosablePositionAwareChannel channel) throws java.io.IOException public override bool Visit(ReadableClosablePositionAwareChannel channel) { LogEntry logEntry; LogEntryStart startEntry = null; while ((logEntry = LogEntryReader.readLogEntry(channel)) != null) { switch (logEntry.Type) { case TX_START: startEntry = logEntry.As(); break; case TX_COMMIT: LogEntryCommit commit = logEntry.As(); if (commit.TxId == StartTransactionId) { StartEntryForFoundTransaction = startEntry; CommitTimestamp = commit.TimeWritten; return(false); } default: // just skip commands break; } } return(true); }
public LogEntryCursor(LogEntryReader <ReadableClosablePositionAwareChannel> logEntryReader, ReadableClosablePositionAwareChannel channel) { this._logEntryReader = logEntryReader; this._channel = channel; }