Affiant.Transport.SignalR 1.0.0-beta.1

Prefix Reserved
This is a prerelease version of Affiant.Transport.SignalR.
dotnet add package Affiant.Transport.SignalR --version 1.0.0-beta.1
                    
NuGet\Install-Package Affiant.Transport.SignalR -Version 1.0.0-beta.1
                    
This command is intended to be used within the Package Manager Console in Visual Studio, as it uses the NuGet module's version of Install-Package.
<PackageReference Include="Affiant.Transport.SignalR" Version="1.0.0-beta.1" />
                    
For projects that support PackageReference, copy this XML node into the project file to reference the package.
<PackageVersion Include="Affiant.Transport.SignalR" Version="1.0.0-beta.1" />
                    
Directory.Packages.props
<PackageReference Include="Affiant.Transport.SignalR" />
                    
Project file
For projects that support Central Package Management (CPM), copy this XML node into the solution Directory.Packages.props file to version the package.
paket add Affiant.Transport.SignalR --version 1.0.0-beta.1
                    
#r "nuget: Affiant.Transport.SignalR, 1.0.0-beta.1"
                    
#r directive can be used in F# Interactive and Polyglot Notebooks. Copy this into the interactive tool or source code of the script to reference the package.
#:package Affiant.Transport.SignalR@1.0.0-beta.1
                    
#:package directive can be used in C# file-based apps starting in .NET 10 preview 4. Copy this into a .cs file before any lines of code to reference the package.
#addin nuget:?package=Affiant.Transport.SignalR&version=1.0.0-beta.1&prerelease
                    
Install as a Cake Addin
#tool nuget:?package=Affiant.Transport.SignalR&version=1.0.0-beta.1&prerelease
                    
Install as a Cake Tool

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 ServiceCollectionExtensionsAddAffiantSignalR<THub>, MapAffiantSignalR<THub>
(root) SignalROptions — message-size and detailed-errors configuration

Further reading


Part of the Affiant Framework | Apache-2.0 License

Product 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. 
Compatible target framework(s)
Included target framework(s) (in package)
Learn more about Target Frameworks and .NET Standard.

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