Ejemplo n.º 1
0
//JAVA TO C# CONVERTER WARNING: Method 'throws' clauses are not available in C#:
//ORIGINAL LINE: protected org.neo4j.bolt.runtime.BoltStateMachineState processStreamResultMessage(boolean pull, org.neo4j.bolt.runtime.StateMachineContext context) throws Throwable
        protected internal override BoltStateMachineState ProcessStreamResultMessage(bool pull, StateMachineContext context)
        {
            Bookmark bookmark = context.ConnectionState().StatementProcessor.streamResult(recordStream => context.ConnectionState().ResponseHandler.onRecords(recordStream, pull));

            bookmark.AttachTo(context.ConnectionState());
            return(ReadyStateConflict);
        }
Ejemplo n.º 2
0
//JAVA TO C# CONVERTER WARNING: Method 'throws' clauses are not available in C#:
//ORIGINAL LINE: private org.neo4j.bolt.runtime.BoltStateMachineState processCommitMessage(org.neo4j.bolt.runtime.StateMachineContext context) throws Exception
        private BoltStateMachineState ProcessCommitMessage(StateMachineContext context)
        {
            StatementProcessor statementProcessor = context.ConnectionState().StatementProcessor;
            Bookmark           bookmark           = statementProcessor.CommitTransaction();

            bookmark.AttachTo(context.ConnectionState());
            return(_readyState);
        }