MagicPool 1.3.0

The owner has unlisted this package. This could mean that the package is deprecated, has security vulnerabilities or shouldn't be used anymore.
dotnet add package MagicPool --version 1.3.0
                    
NuGet\Install-Package MagicPool -Version 1.3.0
                    
This command is intended to be used within the Package Manager Console in Visual Studio, as it uses the NuGet module's version of Install-Package.
<PackageReference Include="MagicPool" Version="1.3.0" />
                    
For projects that support PackageReference, copy this XML node into the project file to reference the package.
<PackageVersion Include="MagicPool" Version="1.3.0" />
                    
Directory.Packages.props
<PackageReference Include="MagicPool" />
                    
Project file
For projects that support Central Package Management (CPM), copy this XML node into the solution Directory.Packages.props file to version the package.
paket add MagicPool --version 1.3.0
                    
#r "nuget: MagicPool, 1.3.0"
                    
#r directive can be used in F# Interactive and Polyglot Notebooks. Copy this into the interactive tool or source code of the script to reference the package.
#:package MagicPool@1.3.0
                    
#:package directive can be used in C# file-based apps starting in .NET 10 preview 4. Copy this into a .cs file before any lines of code to reference the package.
#addin nuget:?package=MagicPool&version=1.3.0
                    
Install as a Cake Addin
#tool nuget:?package=MagicPool&version=1.3.0
                    
Install as a Cake Tool

how to use? only two line of code :

 Pools p = new Pools(10);
 var res = p.Instance<SqlConnection>();

then you get a SqlConnecation instance.

return a instance :

 p.Return<SqlConnection>(res);

it's just so easy.

Want init object automicly?

pay attention to class InstancePool<T>, this privide external delaget to init,pretratment,reset (in this case the instance is not you write ).

another way, pay attention to the interface IReusable , impl this will let the instance pool automic do something to the instance that you want to do.(this suit for the case that you need write class by your self).

There are no supported framework assets in this package.

Learn more about Target Frameworks and .NET Standard.

This package has no dependencies.

NuGet packages

This package is not used by any NuGet packages.

GitHub repositories

This package is not used by any popular GitHub repositories.

Version Downloads Last Updated

add the .netcore spport ,optimized code,add GetPool method for class Pools