any suggestions for a C# object pooling framework? requirements are multi-thread support and a pool size limit, when a thread requests an object but none is available, it's blocked until one of the other objects is freed.
A:
I don't think there's a framework that will do this for you.
You can implement one yourself with a trivial amount of code though. (1 class, ~20 lines of code)
Have a look at the MSDN article here
Glen
2009-05-19 12:21:46
in .Net 4.0 take a look at the System.Collections.Concurrent namespace, many of these are now in the box.
Rick
2009-12-15 04:36:05
A:
Try the enterprise services namespace:
http://msdn.microsoft.com/en-us/library/system.enterpriseservices.aspx
Depending on what you need, this may do the trick for you.
Steve Duitsman
2009-12-14 22:35:47