Compze.DbPool.ServiceClient 0.3.1-alpha

Prefix Reserved
This is a prerelease version of Compze.DbPool.ServiceClient.
There is a newer prerelease version of this package available.
See the version list below for details.
dotnet add package Compze.DbPool.ServiceClient --version 0.3.1-alpha
                    
NuGet\Install-Package Compze.DbPool.ServiceClient -Version 0.3.1-alpha
                    
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="Compze.DbPool.ServiceClient" Version="0.3.1-alpha" />
                    
For projects that support PackageReference, copy this XML node into the project file to reference the package.
<PackageVersion Include="Compze.DbPool.ServiceClient" Version="0.3.1-alpha" />
                    
Directory.Packages.props
<PackageReference Include="Compze.DbPool.ServiceClient" />
                    
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 Compze.DbPool.ServiceClient --version 0.3.1-alpha
                    
#r "nuget: Compze.DbPool.ServiceClient, 0.3.1-alpha"
                    
#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 Compze.DbPool.ServiceClient@0.3.1-alpha
                    
#: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=Compze.DbPool.ServiceClient&version=0.3.1-alpha&prerelease
                    
Install as a Cake Addin
#tool nuget:?package=Compze.DbPool.ServiceClient&version=0.3.1-alpha&prerelease
                    
Install as a Cake Tool

Compze.DbPool.ServiceClient

How the PostgreSQL, MySQL and SQL Server providers of Compze.DbPool reserve their databases from a DbPool service. Take a dependency on the provider of your engine, such as Compze.DbPool.PostgreSql, rather than on this package: its one public type is the exception below.

Where the service is

The environment variable COMPOSABLE_DBPOOL_SERVICE names the machine the service runs on, and the port of its registry server, such as threadripper:7531. Without it, the tests look for a service on their own machine, at port 7531.

An application that keeps the address in its own settings names it in the pool's registration, which then reserves from that service whatever the variable says:

var service = DbPoolServiceAddress.Parse(settings.DbPoolService);
root.Registrar.DbPool(service)
              .PgSqlDbPoolSqlLayer();

When no service is found on the test's own machine and one is installed there, as the Windows service or the scheduled task Compze.DbPool.Service, the message says how to start it.

When there is no service

The first time a process looks for the service, a reservation that finds none fails within a few seconds with DbPoolServiceNotFoundException: at once when the machine's name doesn't resolve or nothing listens at the address, and after 5 seconds when a registry server answers there but no DbPool service announced itself in it. The message says which, and how to start a service. Catch it to tell your own users how to start the service you use. Once the process has found the service, it waits 30 seconds for one that restarts.

License

Apache-2.0

Product Compatible and additional computed target framework versions.
.NET net11.0 is compatible. 
Compatible target framework(s)
Included target framework(s) (in package)
Learn more about Target Frameworks and .NET Standard.

NuGet packages (3)

Showing the top 3 NuGet packages that depend on Compze.DbPool.ServiceClient:

Package Downloads
Compze.DbPool.MicrosoftSql

Empty SQL Server databases on demand for integration testing etc.

Compze.DbPool.MySql

Empty MySQL databases on demand for integration testing etc.

Compze.DbPool.PostgreSql

PostgreSQL database pool support for Compze integration testing.

GitHub repositories

This package is not used by any popular GitHub repositories.

Version Downloads Last Updated
0.19.0-alpha 0 12/5/2026
0.18.1-alpha 0 12/5/2026
0.18.0-alpha 0 12/5/2026
0.17.1-alpha 0 12/5/2026
0.17.0-alpha 0 12/5/2026
0.16.0-alpha 0 12/5/2026
0.15.1-alpha 0 12/5/2026
0.15.0-alpha 0 12/5/2026
0.14.0-alpha 0 12/5/2026
0.7.2-alpha 7 12/5/2026
0.7.1-alpha 38 12/5/2026
0.7.0-alpha 89 12/5/2026
0.6.0-alpha 61 12/5/2026
0.5.1-alpha 59 12/5/2026
0.5.0-alpha 56 12/4/2026
0.4.0-alpha 51 12/4/2026
0.3.2-alpha 73 12/4/2026
0.3.1-alpha 83 12/4/2026
0.3.0-alpha 53 12/4/2026
0.2.3-alpha 56 12/4/2026
Loading failed

- **Requires exact versions of the Compze packages whose internals it uses:** Compze.Tessaging 0.25.2-alpha (was 0.25.1-alpha). Upgrading to this version upgrades each package listed here to exactly that version, so their changelogs apply to this upgrade as well.