예제 #1
0
//JAVA TO C# CONVERTER WARNING: Method 'throws' clauses are not available in C#:
//ORIGINAL LINE: public org.neo4j.kernel.api.KernelTransaction beginTransaction(org.neo4j.internal.kernel.api.Transaction_Type type, org.neo4j.internal.kernel.api.security.LoginContext loginContext, long timeout) throws org.neo4j.internal.kernel.api.exceptions.TransactionFailureException
		 public override KernelTransaction BeginTransaction( [email protected]_Type type, LoginContext loginContext, long timeout )
		 {
			  _health.assertHealthy( typeof( TransactionFailureException ) );
			  KernelTransaction transaction = _transactions.newInstance( type, loginContext, timeout );
			  _transactionMonitor.transactionStarted();
			  return transaction;
		 }
예제 #2
0
//JAVA TO C# CONVERTER WARNING: Method 'throws' clauses are not available in C#:
//ORIGINAL LINE: public org.neo4j.kernel.api.KernelTransaction beginTransaction(org.neo4j.internal.kernel.api.Transaction_Type type, org.neo4j.internal.kernel.api.security.LoginContext loginContext) throws org.neo4j.internal.kernel.api.exceptions.TransactionFailureException
		 public override KernelTransaction BeginTransaction( [email protected]_Type type, LoginContext loginContext )
		 {
			  if ( !_isRunning )
			  {
					throw new System.InvalidOperationException( "Kernel is not running, so it is not possible to use it" );
			  }
			  return BeginTransaction( type, loginContext, _config.get( transaction_timeout ).toMillis() );
		 }
예제 #3
0
 public override Transaction BeginTransaction([email protected]_Type type, LoginContext loginContext)
 {
     return(Remember(outerInstance.createTransaction()));
 }