re-introduce prior ctor signature as pass-thru to new ctor to maintain backward-compat

This commit is contained in:
Steve Bohlen
2015-11-22 13:51:05 -05:00
parent 40db4808e9
commit ba2aaaf5b8

View File

@@ -55,6 +55,25 @@ namespace Spring.Pool.Support
internal readonly Semaphore available;
/// <summary>
/// Creates a new instance of the <see cref="Spring.Pool.Support.SimplePool"/>
/// class.
/// </summary>
/// <param name="factory">
/// The factory used to instantiate and manage the lifecycle of pooled objects.
/// </param>
/// <param name="initialSize">The initial size of the pool.</param>
/// <exception cref="System.ArgumentNullException">
/// If the supplied <paramref name="factory"/> is <see langword="null"/>.
/// </exception>
/// <exception cref="System.ArgumentException">
/// If the supplied <paramref name="initialSize"/> is less than or equal to zero.
/// </exception>
public SimplePool(IPoolableObjectFactory factory, int initialSize)
: this(factory, initialSize, initialSize)
{
}
/// <summary>
/// Creates a new instance of the <see cref="Spring.Pool.Support.SimplePool"/>
/// class.
/// </summary>
@@ -67,7 +86,7 @@ namespace Spring.Pool.Support
/// If the supplied <paramref name="factory"/> is <see langword="null"/>.
/// </exception>
/// <exception cref="System.ArgumentException">
/// If the supplied <paramref name="size"/> is less than or equal to zero.
/// If the supplied <paramref name="maxSize"/> is less than or equal to zero.
/// </exception>
public SimplePool(IPoolableObjectFactory factory, int maxSize, int initialSize)
{