Beispiel #1
0
        private void DoPool(IInnerConnection innerConnection)
        {
            try
            {
                innerConnection.Pool();
            }
            catch
            {
                innerConnection.Close();
                throw;
            }

            lock (this)
            {
                if (size < maxSize)
                {
                    pool[size++] = innerConnection;
                    return;
                }
            }

            innerConnection.Close();
        }
		private void DoPool (IInnerConnection innerConnection)
		{
			try
			{
				innerConnection.Pool ();
			}
			catch
			{
				innerConnection.Close ();
				throw;
			}

			lock (this)
			{
				if (size < maxSize)
				{
					pool[size++] = innerConnection;
					return;
				}
			}

			innerConnection.Close ();
		}