From ba2aaaf5b8b73003ec81fe7315319c22ee7add98 Mon Sep 17 00:00:00 2001 From: Steve Bohlen Date: Sun, 22 Nov 2015 13:51:05 -0500 Subject: [PATCH] re-introduce prior ctor signature as pass-thru to new ctor to maintain backward-compat --- .../Spring.Core/Pool/Support/SimplePool.cs | 21 ++++++++++++++++++- 1 file changed, 20 insertions(+), 1 deletion(-) diff --git a/src/Spring/Spring.Core/Pool/Support/SimplePool.cs b/src/Spring/Spring.Core/Pool/Support/SimplePool.cs index d65dc91a..5add02ea 100644 --- a/src/Spring/Spring.Core/Pool/Support/SimplePool.cs +++ b/src/Spring/Spring.Core/Pool/Support/SimplePool.cs @@ -55,6 +55,25 @@ namespace Spring.Pool.Support internal readonly Semaphore available; /// + /// Creates a new instance of the + /// class. + /// + /// + /// The factory used to instantiate and manage the lifecycle of pooled objects. + /// + /// The initial size of the pool. + /// + /// If the supplied is . + /// + /// + /// If the supplied is less than or equal to zero. + /// + public SimplePool(IPoolableObjectFactory factory, int initialSize) + : this(factory, initialSize, initialSize) + { + } + + /// /// Creates a new instance of the /// class. /// @@ -67,7 +86,7 @@ namespace Spring.Pool.Support /// If the supplied is . /// /// - /// If the supplied is less than or equal to zero. + /// If the supplied is less than or equal to zero. /// public SimplePool(IPoolableObjectFactory factory, int maxSize, int initialSize) {