//JAVA TO C# CONVERTER WARNING: Method 'throws' clauses are not available in .NET: //ORIGINAL LINE: @Override public ConnectionPool call() throws Exception public virtual object call() { //JAVA TO C# CONVERTER WARNING: The original Java variable was marked 'final': //ORIGINAL LINE: final ConnectionPool pool = new ConnectionPool(connectionSelectStrategy); ConnectionPool pool = new ConnectionPool(outerInstance.connectionSelectStrategy); if (whetherInitConnection) { try { outerInstance.doCreate(url, pool, GetType().Name, 1); } catch { pool.removeAllAndTryClose(); throw; } } return(pool); }
//JAVA TO C# CONVERTER WARNING: Method 'throws' clauses are not available in .NET: //ORIGINAL LINE: @Override public Nullable<int> call() throws Exception public virtual object call() { outerInstance.doCreate(url, pool, GetType().Name, 0); return(pool.size()); }