MaksIT.Nats
1.0.1
dotnet add package MaksIT.Nats --version 1.0.1
NuGet\Install-Package MaksIT.Nats -Version 1.0.1
<PackageReference Include="MaksIT.Nats" Version="1.0.1" />
<PackageVersion Include="MaksIT.Nats" Version="1.0.1" />
<PackageReference Include="MaksIT.Nats" />
paket add MaksIT.Nats --version 1.0.1
#r "nuget: MaksIT.Nats, 1.0.1"
#:package MaksIT.Nats@1.0.1
#addin nuget:?package=MaksIT.Nats&version=1.0.1
#tool nuget:?package=MaksIT.Nats&version=1.0.1
MaksIT.Nats
Facade library for NATS JetStream admin operations using NATS.Net v3.
Used by maksit-cicd for build-queue health, JetStream message browse, and admin delete.
Installation
dotnet add package MaksIT.Nats
Usage
Implement INatsClientConfiguration in the host (URL, optional monitoring URL, allowlisted streams), then register services:
using MaksIT.Nats.Extensions;
builder.Services.RegisterNatsJetStreamAdmin<MyNatsConfigurationAdapter>();
Or register configuration manually:
builder.Services.AddSingleton<INatsClientConfiguration>(sp => /* ... */);
builder.Services.RegisterNatsJetStreamAdmin();
Inject INatsJetStreamService for:
GetHealthAsync()— per-stream and aggregate JetStream healthSearchStreamMessagesAsync()— paginated message browse (newest first)DeleteStreamMessageAsync()— delete by sequence (allowlisted streams only)
All operations return MaksIT.Results Result types.
Build and test
Local (host SDK):
cd src && dotnet build MaksIT.Nats.slnx
utils\Invoke-TestEngine.bat
Release (SDK inside container — recommended):
utils\Invoke-ReleasePackage-Single.bat
Uses DockerContainerBuilder / PodmanContainerBuilder with mcr.microsoft.com/dotnet/sdk:10.0 (see utils/engines/release/maksit-nats-containerbuilder.Dockerfile).
Release
See CONTRIBUTING.md. Version is defined in src/MaksIT.Nats/MaksIT.Nats.csproj.
License
See LICENSE.md.
| Product | Versions Compatible and additional computed target framework versions. |
|---|---|
| .NET | net10.0 is compatible. net10.0-android was computed. net10.0-browser was computed. net10.0-ios was computed. net10.0-maccatalyst was computed. net10.0-macos was computed. net10.0-tvos was computed. net10.0-windows was computed. |
-
net10.0
- MaksIT.Results (>= 2.0.3)
- Microsoft.Extensions.DependencyInjection.Abstractions (>= 10.0.9)
- Microsoft.Extensions.Http (>= 10.0.9)
- Microsoft.Extensions.Logging.Abstractions (>= 10.0.9)
- NATS.Client.Core (>= 3.0.0)
- NATS.Client.JetStream (>= 3.0.0)
NuGet packages
This package is not used by any NuGet packages.
GitHub repositories
This package is not used by any popular GitHub repositories.