Compze.DbPool.ServiceClient 0.5.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.5.1-alpha
                    
NuGet\Install-Package Compze.DbPool.ServiceClient -Version 0.5.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.5.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.5.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.5.1-alpha
                    
#r "nuget: Compze.DbPool.ServiceClient, 0.5.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.5.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.5.1-alpha&prerelease
                    
Install as a Cake Addin
#tool nuget:?package=Compze.DbPool.ServiceClient&version=0.5.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

A test project names the machine its service runs on, and the port of the service's registry server, in the build property CompzeDbPoolService: in its project file, or in a Directory.Build.props for every project of a repository.

<PropertyGroup>
  <CompzeDbPoolService>192.168.0.11:7531</CompzeDbPoolService>
</PropertyGroup>

Name the machine by its IPv4 address: a machine's name can time out until Compze.Tessaging's TCP connect tries the addresses the name resolves to side by side, rather than one after another.

This package's build file puts the setting in the project's runtimeconfig.json, so it goes wherever the test assembly goes, and a test project that references the package through a provider gets it too. Without it, the tests look for a service on their own machine, at port 7531. A setting that isn't host:port fails the pool's creation, naming where it came from.

A setting committed to a repository applies on every machine that builds it, CI's too. Where CI runs a service of its own, set it only outside CI, such as with Condition="'$(GITHUB_ACTIONS)' != 'true'" on the property, or in a file each developer keeps out of git, imported from Directory.Build.props.

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

- A pool can reserve from the DbPool service named by `CompzeDbPoolService` when the machine name resolves to several addresses and only a later address answers. The test build can use the machine name even when the service listens only on IPv4.
- **Requires exact versions of the Compze packages whose internals it uses:** Compze.Tessaging 0.26.1-alpha (was 0.26.0-alpha). Upgrading to this version upgrades each package listed here to exactly that version, so their changelogs apply to this upgrade as well.