//JAVA TO C# CONVERTER WARNING: Method 'throws' clauses are not available in C#: //ORIGINAL LINE: private static void addIndex(org.neo4j.graphdb.GraphDatabaseService database) throws org.neo4j.internal.kernel.api.exceptions.schema.SchemaKernelException private static void AddIndex(GraphDatabaseService database) { using (Transaction transaction = database.BeginTx()) { DependencyResolver resolver = (( GraphDatabaseAPI )database).DependencyResolver; ThreadToStatementContextBridge statementBridge = resolver.ProvideDependency(typeof(ThreadToStatementContextBridge)).get(); KernelTransaction kernelTransaction = statementBridge.GetKernelTransactionBoundToThisThread(true); LabelSchemaDescriptor descriptor = SchemaDescriptorFactory.forLabel(0, 0); Config config = resolver.ResolveDependency(typeof(Config)); kernelTransaction.IndexUniqueCreate(descriptor, config.Get(GraphDatabaseSettings.default_schema_provider)); transaction.Success(); } }