metalTools 26.10.11.1
dotnet add package metalTools --version 26.10.11.1
NuGet\Install-Package metalTools -Version 26.10.11.1
<PackageReference Include="metalTools" Version="26.10.11.1" />
<PackageVersion Include="metalTools" Version="26.10.11.1" />
<PackageReference Include="metalTools" />
paket add metalTools --version 26.10.11.1
#r "nuget: metalTools, 26.10.11.1"
#:package metalTools@26.10.11.1
#addin nuget:?package=metalTools&version=26.10.11.1
#tool nuget:?package=metalTools&version=26.10.11.1
metalTools
Small .NET 10 libraries maintained in one repository and released as separate
NuGet packages. Each project lives under source; the convenience package
metalTools depends on the component packages and contains no DLL.
| Package | Purpose |
|---|---|
metalTools.LoggerLite |
Buffered logging, JSONL archive and recent in-memory activity feed |
metalTools.PortDiscovery |
Bind the actual server to an available TCP port within a range |
metalTools.StateMachine |
Class-based states with enter, update, exit and validated transitions |
metalTools.ServiceDiscovery |
JSON service registry, client registration and heartbeats |
metalTools.LoggerLite.Hosting |
Optional Generic Host logging provider |
metalTools.ConnectionManagement.NetMq |
Optional NetMQ discovery, reconnect and client session leases |
metalTools.ServiceDiscovery.Hosting |
Optional hosted discovery listener and registration |
metalTools |
Installs all four core components |
metalTools.EasyConfig is a possible future addition. The one-method wrapper
currently living in LiveUI adds little beyond the standard configuration binder,
so it is not released here yet. EventPump remains a separate library.
Build
dotnet restore metalTools.slnx
dotnet build metalTools.slnx -c Release
dotnet test metalTools.slnx -c Release --no-build
dotnet pack metalTools.slnx -c Release --no-build -o artifacts
For local testing, build and add new prerelease versions to the configured
Nuget.Local source with the local package workflow.
All eight packages currently share one version for simple releases. The package
ID, assembly name and namespace use metalTools.Component. The source and
package IDs are public API; a change to the old LoggerLite or
metalTools.Core.StateMachine namespace requires consumer updates. Consult
the migration notes.
Port selection
using metalTools.PortDiscovery;
int port = PortBinder.Bind(
new TcpPortRange(51200, 51299),
tryBind: port => server.TryBind(port),
preferredPort: 51200);
Supply your transport's bind callback: true retains a successful binding; false tries the next candidate. Exceptions propagate; range exhaustion throws. The caller owns the server. See the binding guide for a TCP listener example and a proposed EventPump integration.
Service discovery
The metalBlender discovery host listens on 51220 and stores server registrations in JSON. Servers renew their registrations; stale entries expire.
using metalTools.ServiceDiscovery;
using var discovery = DiscoveryService.At("discovery-pc");
await using var registration = await discovery.KeepAliveAsync(
DiscoveryService.Server().OfType("LiveUi").Named("House boiler")
.At("192.168.1.20", 51207).UsingProtocol("tcp"));
var servers = await discovery.FindAsync("LiveUi");
Run dotnet run --project source/DiscoveryHost to start the registry.
See the discovery guide for table fields, hosting,
expiry and planned LiveUi/EventPump integration.
Release
CI builds, tests and inspects packages. Publishing is triggered by a GitHub
release tagged v<version> after configuring a NuGet Trusted Publishing policy
for batpox/metalTools, workflow nuget-release.yml, and a GitHub repository
variable NUGET_USER containing the NuGet account name. Restrict the
nuget-release GitHub environment and the NuGet policy to these package IDs.
The workflow uses OIDC to obtain a short-lived push key; it stores no API key.
Before publishing, confirm the metalTools.* IDs are available on nuget.org
and make this repository public after reviewing its history and contents.
Published package versions cannot be replaced. See
packaging and release notes.
Scope
The libraries are deliberately small. See each component README for behavior, limits and alternatives. They are not substitutes for a general-purpose logging framework, the Stateless state-machine package, or OS-assigned ephemeral ports.
Licensed under MIT.
See Generic Host integration for the two optional hosting packages. Release and local-feed workflows now include eight packages; the convenience package retains its four core dependencies.
See NetMQ connection management. This optional package depends on NetMQ and PortDiscovery; it is not a dependency of the convenience package.
Automatic local startup
Queries and registrations can reuse or start the independent local DiscoveryHost with WithAutomaticStartup(). Host-managed registration enables this by default. Add metalTools.DiscoveryHost to the executable application to deploy the host into its discovery folder. Remote registries are never replaced locally. See automatic discovery for settings, recovery, deployment, and service ownership.
Learn more about Target Frameworks and .NET Standard.
-
net10.0
- metalTools.LoggerLite (>= 26.10.11.1)
- metalTools.PortDiscovery (>= 26.10.11.1)
- metalTools.ServiceDiscovery (>= 26.10.11.1)
- metalTools.StateMachine (>= 26.10.11.1)
NuGet packages
This package is not used by any NuGet packages.
GitHub repositories
This package is not used by any popular GitHub repositories.
| Version | Downloads | Last Updated |
|---|---|---|
| 26.10.11.1 | 157 | 10/11/2026 |
| 26.10.10.1232 | 170 | 10/10/2026 |
| 26.9.29.13 | 160 | 9/29/2026 |