Compze.DbPool.ServiceClient
0.4.0-alpha
Prefix Reserved
See the version list below for details.
dotnet add package Compze.DbPool.ServiceClient --version 0.4.0-alpha
NuGet\Install-Package Compze.DbPool.ServiceClient -Version 0.4.0-alpha
<PackageReference Include="Compze.DbPool.ServiceClient" Version="0.4.0-alpha" />
<PackageVersion Include="Compze.DbPool.ServiceClient" Version="0.4.0-alpha" />
<PackageReference Include="Compze.DbPool.ServiceClient" />
paket add Compze.DbPool.ServiceClient --version 0.4.0-alpha
#r "nuget: Compze.DbPool.ServiceClient, 0.4.0-alpha"
#:package Compze.DbPool.ServiceClient@0.4.0-alpha
#addin nuget:?package=Compze.DbPool.ServiceClient&version=0.4.0-alpha&prerelease
#tool nuget:?package=Compze.DbPool.ServiceClient&version=0.4.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>threadripper:7531</CompzeDbPoolService>
</PropertyGroup>
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 environment variable
COMPOSABLE_DBPOOL_SERVICE names the service, for every process of the user or machine that sets it. Without either, 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 |
- **A test project names its DbPool service with the build property `CompzeDbPoolService`,** such as `<CompzeDbPoolService>threadripper:7531</CompzeDbPoolService>`, in its project file or a `Directory.Build.props`. This package's build file, in `buildTransitive`, puts it in the project's runtimeconfig.json, so a project that references the package through a provider gets it too. It goes before `COMPOSABLE_DBPOOL_SERVICE`, which goes before the service on the test's own machine. A setting that isn't host:port fails the pool's creation, naming where it came from.
- A message about a DbPool service not found no longer says that a pool's registration named it: Compze.DbPool's registrations no longer can.
- **Requires exact versions of the Compze packages whose internals it uses:** Compze.DbPool 0.10.0-alpha (was 0.9.0-alpha). Upgrading to this version upgrades each package listed here to exactly that version, so their changelogs apply to this upgrade as well.