UtilPack.ResourcePooling
1.0.0
dotnet add package UtilPack.ResourcePooling --version 1.0.0
NuGet\Install-Package UtilPack.ResourcePooling -Version 1.0.0
<PackageReference Include="UtilPack.ResourcePooling" Version="1.0.0" />
paket add UtilPack.ResourcePooling --version 1.0.0
#r "nuget: UtilPack.ResourcePooling, 1.0.0"
// Install UtilPack.ResourcePooling as a Cake Addin #addin nuget:?package=UtilPack.ResourcePooling&version=1.0.0 // Install UtilPack.ResourcePooling as a Cake Tool #tool nuget:?package=UtilPack.ResourcePooling&version=1.0.0
UtilPack.ResourcePooling
This project contains interfaces that provide API to use pooled resources in synchronous and asynchronous way. Additionally, classes completely implementing the interfaces are also exposed. The resource pool API is also observable, allowing registering for events when resource is created, starting to be used, returned back to pool, and closed. While the resource pools do not clean up themselves automatically nor periodically, they provide API to invoke clean up routine whenever the user or manager of the pool so requires.
Currently, synchronous API is not there - only asynchronous is implemented.
Using API of this library most usually starts with AsyncResourcePool
interface, which acts as entrypoint for asynchronous API.
It exposes one method, UseResourceAsync
, which accepts callback which receives the resource and performs some asychronous actions on it.
When the type constraints for the resources are known (e.g. must implement specific interface), but the exact type of the resource is unknown at compile time, the ResourcePoolProvider
interface can be used to create a resource pool.
The configuration (e.g. file on disk) can provide the assembly name and type name of type implementing ResourcePoolProvider
, which can be then instantiated and used to obtain various kinds (one-time-use, caching with clean-up, etc) of resource pools.
Varuiys kinds of connection pools are acquireable via factory methods defined as extension methods for AsyncResourceFactory
interface.
Distribution
See NuGet package for binary distribution.
Product | Versions Compatible and additional computed target framework versions. |
---|---|
.NET | net5.0 was computed. net5.0-windows was computed. net6.0 was computed. net6.0-android was computed. net6.0-ios was computed. net6.0-maccatalyst was computed. net6.0-macos was computed. net6.0-tvos was computed. net6.0-windows was computed. net7.0 was computed. net7.0-android was computed. net7.0-ios was computed. net7.0-maccatalyst was computed. net7.0-macos was computed. net7.0-tvos was computed. net7.0-windows was computed. net8.0 was computed. net8.0-android was computed. net8.0-browser was computed. net8.0-ios was computed. net8.0-maccatalyst was computed. net8.0-macos was computed. net8.0-tvos was computed. net8.0-windows was computed. |
.NET Core | netcoreapp1.0 was computed. netcoreapp1.1 was computed. netcoreapp2.0 was computed. netcoreapp2.1 was computed. netcoreapp2.2 was computed. netcoreapp3.0 was computed. netcoreapp3.1 was computed. |
.NET Standard | netstandard1.0 is compatible. netstandard1.1 was computed. netstandard1.2 was computed. netstandard1.3 was computed. netstandard1.4 was computed. netstandard1.5 was computed. netstandard1.6 was computed. netstandard2.0 was computed. netstandard2.1 was computed. |
.NET Framework | net40 is compatible. net403 was computed. net45 is compatible. net451 was computed. net452 was computed. net46 was computed. net461 was computed. net462 was computed. net463 was computed. net47 was computed. net471 was computed. net472 was computed. net48 was computed. net481 was computed. |
MonoAndroid | monoandroid was computed. |
MonoMac | monomac was computed. |
MonoTouch | monotouch was computed. |
Tizen | tizen30 was computed. tizen40 was computed. tizen60 was computed. |
Universal Windows Platform | uap was computed. uap10.0 was computed. |
Windows Phone | wp8 was computed. wp81 was computed. wpa81 was computed. |
Windows Store | netcore was computed. netcore45 was computed. netcore451 was computed. |
Xamarin.iOS | xamarinios was computed. |
Xamarin.Mac | xamarinmac was computed. |
Xamarin.TVOS | xamarintvos was computed. |
Xamarin.WatchOS | xamarinwatchos was computed. |
-
.NETFramework 4.0
- UtilPack (>= 1.5.0)
-
.NETFramework 4.5
- UtilPack (>= 1.5.0)
-
.NETStandard 1.0
- NETStandard.Library (>= 1.6.1)
- UtilPack (>= 1.5.0)
NuGet packages (4)
Showing the top 4 NuGet packages that depend on UtilPack.ResourcePooling:
Package | Downloads |
---|---|
CBAM.Abstractions.Implementation
The Connection-Based Asynchronous Messaging (CBAM) Abstractions.Implementation assembly contains skeleton implementations for types in CBAM.Abstractions assembly. |
|
UtilPack.ResourcePooling.NetworkStream
Easy-to-use async resource pool for streams operating on sockets. |
|
CBAM.SQL.PostgreSQL.JSON
The Connection-Based Asynchronous Messaging (CBAM) SQL.PostgreSQL.JSON assembly provides API to add support for json and jsonb PostgreSQL types to connections of CBAM.SQL.PostgreSQL assembly. The API is two extensions methods for ConnectionPoolObservable type in CBAM.Abstractions assembly, and PgSQLConnection type in CBAM.SQL.PostgreSQL assembly. The first extension method adds support for json and jsonb PostgreSQL types to all connections created by given pool. The second extension method adds support for those types for a single connection. Once support has been added, the values of json and jsonb PostgreSQL types can be directly acquired as JToken type of Newtonsoft.JSON assembly. |
|
UtilPack.ResourcePooling.MSBuild
This project is a bridge between UtilPack.ResourcePooling project and custom MSBuild tasks. |
GitHub repositories
This package is not used by any popular GitHub repositories.
Adapting to changes done in UtilPack (IAsyncDisposable and IAsyncDisposableWithToken interfaces), and also streamlining API for this release.