Exemple #1
0
            internal LifeCycleState(string name, InnerEnum innerEnum, Org.Neo4j.Function.ThrowingConsumer <Org.Neo4j.Kernel.Lifecycle.Lifecycle, Exception> operation)
            {
                this._operation = operation;

                nameValue      = name;
                ordinalValue   = nextOrdinal++;
                innerEnumValue = innerEnum;
            }
Exemple #2
0
//JAVA TO C# CONVERTER WARNING: Method 'throws' clauses are not available in C#:
//ORIGINAL LINE: boolean consumeResult(MutableTransactionState ctx, org.neo4j.function.ThrowingConsumer<org.neo4j.bolt.runtime.BoltResult,Exception> resultConsumer) throws Exception
            internal bool ConsumeResult(MutableTransactionState ctx, Org.Neo4j.Function.ThrowingConsumer <Org.Neo4j.Bolt.runtime.BoltResult, Exception> resultConsumer)
            {
                bool success = false;

                try
                {
                    resultConsumer.Accept(ctx.CurrentResult);
                    success = true;
                }
                finally
                {
                    ctx.CurrentResult.close();
                    ctx.CurrentResult = null;

                    if (ctx.CurrentResultHandle != null)
                    {
                        ctx.CurrentResultHandle.close(success);
                        ctx.CurrentResultHandle = null;
                    }
                }
                return(success);
            }
Exemple #3
0
//JAVA TO C# CONVERTER WARNING: Method 'throws' clauses are not available in C#:
//ORIGINAL LINE: abstract org.neo4j.bolt.v1.runtime.bookmarking.Bookmark streamResult(MutableTransactionState ctx, org.neo4j.bolt.runtime.TransactionStateMachineSPI spi, org.neo4j.function.ThrowingConsumer<org.neo4j.bolt.runtime.BoltResult,Exception> resultConsumer) throws Exception;
            internal abstract Org.Neo4j.Bolt.v1.runtime.bookmarking.Bookmark streamResult(MutableTransactionState ctx, Org.Neo4j.Bolt.runtime.TransactionStateMachineSPI spi, Org.Neo4j.Function.ThrowingConsumer <Org.Neo4j.Bolt.runtime.BoltResult, Exception> resultConsumer);