Compze.DbPool.ServiceClient
0.5.0-alpha
Prefix Reserved
See the version list below for details.
dotnet add package Compze.DbPool.ServiceClient --version 0.5.0-alpha
NuGet\Install-Package Compze.DbPool.ServiceClient -Version 0.5.0-alpha
<PackageReference Include="Compze.DbPool.ServiceClient" Version="0.5.0-alpha" />
<PackageVersion Include="Compze.DbPool.ServiceClient" Version="0.5.0-alpha" />
<PackageReference Include="Compze.DbPool.ServiceClient" />
paket add Compze.DbPool.ServiceClient --version 0.5.0-alpha
#r "nuget: Compze.DbPool.ServiceClient, 0.5.0-alpha"
#:package Compze.DbPool.ServiceClient@0.5.0-alpha
#addin nuget:?package=Compze.DbPool.ServiceClient&version=0.5.0-alpha&prerelease
#tool nuget:?package=Compze.DbPool.ServiceClient&version=0.5.0-alpha&prerelease
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 | Versions Compatible and additional computed target framework versions. |
|---|---|
| .NET | net11.0 is compatible. |
-
net11.0
- Compze.DbPool (= 0.10.0-alpha)
- Compze.DependencyInjection.Microsoft (>= 0.7.0-alpha)
- Compze.Hosting (>= 0.10.6-alpha)
- Compze.Serialization.SystemTextJson (>= 0.3.17-alpha)
- Compze.Tessaging (= 0.26.0-alpha)
- Compze.TypeIdentifiers.DependencyInjection (>= 0.2.0-alpha)
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 |
- **Removed `COMPOSABLE_DBPOOL_SERVICE`:** a pool reserves from the DbPool service its test project's build property `CompzeDbPoolService` names, else from the one on this machine. A breaking change, as an alpha's may be: where the variable named a service, the property names it instead, in the test projects or a `Directory.Build.props`. A harness that starts a service on a port the operating system picks passes its address to the build, as `dotnet test -p:CompzeDbPoolService=127.0.0.1:52817` does.