Affiant.Transport.SignalR
1.0.0-beta.1
Prefix Reserved
dotnet add package Affiant.Transport.SignalR --version 1.0.0-beta.1
NuGet\Install-Package Affiant.Transport.SignalR -Version 1.0.0-beta.1
<PackageReference Include="Affiant.Transport.SignalR" Version="1.0.0-beta.1" />
<PackageVersion Include="Affiant.Transport.SignalR" Version="1.0.0-beta.1" />
<PackageReference Include="Affiant.Transport.SignalR" />
paket add Affiant.Transport.SignalR --version 1.0.0-beta.1
#r "nuget: Affiant.Transport.SignalR, 1.0.0-beta.1"
#:package Affiant.Transport.SignalR@1.0.0-beta.1
#addin nuget:?package=Affiant.Transport.SignalR&version=1.0.0-beta.1&prerelease
#tool nuget:?package=Affiant.Transport.SignalR&version=1.0.0-beta.1&prerelease
Affiant.Transport.SignalR
SignalR transport adapter for the Affiant framework — "sworn provenance for every AI write."
Implements IStreamingTransport over ASP.NET Core SignalR and provides AffiantHub, an abstract, subclassable Hub<IAffiantHubClient> base a host derives from to get typed, compile-time-checked client method calls (Clients.Caller.ReceiveToken(chunk) instead of a string-keyed SendAsync) for every TransportEvent the framework can push: Evidence Card requests, docket expiry notices, UI guidance, and system notifications.
Quick start
// Program.cs
builder.Services.AddAffiantCore();
builder.Services.AddAffiantSignalR<MyHub>();
// ...
app.MapAffiantSignalR<MyHub>(); // or app.MapHub<MyHub>("/hubs/affiant") directly
public class MyHub(IChatSessionStore chatSessionStore, IStreamingTransport transport)
: AffiantHub(chatSessionStore, transport)
{
// host-specific hub methods
}
AddAffiantSignalR<THub>() registers SignalRStreamingTransport<THub> as the IStreamingTransport singleton and calls AddSignalR() with the hub JSON protocol declared explicitly (camelCase properties, enums as strings) — a host must still map the hub in the pipeline.
Package contents
| Namespace | Purpose |
|---|---|
Affiant.Transport.SignalR.Hubs |
AffiantHub — the abstract Hub<IAffiantHubClient> base a host subclasses; IAffiantHubClient — the typed client-call surface, one method per TransportEvent member |
Affiant.Transport.SignalR.Transport |
SignalRStreamingTransport<THub> — the IStreamingTransport implementation, including in-process reviewer-confirmation routing |
Affiant.Transport.SignalR.Extensions |
ServiceCollectionExtensions — AddAffiantSignalR<THub>, MapAffiantSignalR<THub> |
| (root) | SignalROptions — message-size and detailed-errors configuration |
Further reading
- Affiant Framework Specification — the full design contract, including the streaming transport contract and Rule 6 (UI guidance)
- Tool Authoring Guide — write your first Affiant plugin pair
Part of the Affiant Framework | Apache-2.0 License
| 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
- Affiant.Abstractions (>= 1.0.0-beta.1)
- Affiant.Core (>= 1.0.0-beta.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 |
|---|---|---|
| 1.0.0-beta.1 | 50 | 8/23/2026 |