//JAVA TO C# CONVERTER TODO TASK: Most Java annotations will not have direct .NET equivalent attributes: //ORIGINAL LINE: @Test(expected = IllegalStateException.class) public void shouldNotCloseWhileCreating() throws java.io.IOException //JAVA TO C# CONVERTER WARNING: Method 'throws' clauses are not available in C#: public virtual void ShouldNotCloseWhileCreating() { // GIVEN //JAVA TO C# CONVERTER WARNING: The original Java variable was marked 'final': //ORIGINAL LINE: final org.neo4j.test.DoubleLatch latch = new org.neo4j.test.DoubleLatch(); DoubleLatch latch = new DoubleLatch(); //JAVA TO C# CONVERTER WARNING: The original Java variable was marked 'final': //ORIGINAL LINE: final IndexProxy inner = new IndexProxyAdapter() IndexProxy inner = new IndexProxyAdapterAnonymousInnerClass(this, latch); //JAVA TO C# CONVERTER WARNING: The original Java variable was marked 'final': //ORIGINAL LINE: final IndexProxy outer = newContractCheckingIndexProxy(inner); IndexProxy outer = NewContractCheckingIndexProxy(inner); // WHEN RunInSeparateThread(outer.start); try { latch.WaitForAllToStart(); outer.Close(); } finally { latch.Finish(); } }
private IndexSamplingJob CreateIndexSamplingJob(IndexAccessor fusionAccessor) { IndexStoreView storeView = Org.Neo4j.Kernel.Impl.Api.index.IndexStoreView_Fields.Empty; IndexProxyAdapter indexProxy = new IndexProxyAdapterAnonymousInnerClass(this, fusionAccessor); OnlineIndexSamplingJobFactory onlineIndexSamplingJobFactory = new OnlineIndexSamplingJobFactory(storeView, simpleNameLookup, Instance); return(onlineIndexSamplingJobFactory.Create(1, indexProxy)); }