EllipticBit.Coalescence.SignalR
1.5.3
dotnet add package EllipticBit.Coalescence.SignalR --version 1.5.3
NuGet\Install-Package EllipticBit.Coalescence.SignalR -Version 1.5.3
<PackageReference Include="EllipticBit.Coalescence.SignalR" Version="1.5.3" />
<PackageVersion Include="EllipticBit.Coalescence.SignalR" Version="1.5.3" />
<PackageReference Include="EllipticBit.Coalescence.SignalR" />
paket add EllipticBit.Coalescence.SignalR --version 1.5.3
#r "nuget: EllipticBit.Coalescence.SignalR, 1.5.3"
#:package EllipticBit.Coalescence.SignalR@1.5.3
#addin nuget:?package=EllipticBit.Coalescence.SignalR&version=1.5.3
#tool nuget:?package=EllipticBit.Coalescence.SignalR&version=1.5.3
EllipticBit.Coalescence.SignalR
ASP.NET Core SignalR client support library for the Coalescence code generation system.
This package provides a small dependency-injection friendly repository over one or more SignalR HubConnection instances, allowing Coalescence-generated SignalR clients (and your own code) to resolve named hub connections from the service container.
Features
AddCoalescenceSignalRServices(HubConnection)registers the connection repository and a defaultHubConnection.ICoalescenceSignalRRepositoryresolves the default connection (Get()) or a named connection (Get(name)).ICoalescenceSignalRServiceBuilder.AddHubConnection(name, connection)registers additional named connections.
Requirements
- Targets
.NET Standard 2.0, so it runs on .NET Framework 4.6.1+, .NET Core 2.0+, and modern .NET (.NET 8+). - Depends on
Microsoft.AspNetCore.SignalR.Client.
Installation
Install from NuGet:
dotnet add package EllipticBit.Coalescence.SignalR
Or add a PackageReference to your project file (replace the version with the latest published version):
<PackageReference Include="EllipticBit.Coalescence.SignalR" Version="x.y.z" />
Getting Started
1. Register the default hub connection
Build a HubConnection and register it as the default Coalescence SignalR connection:
using EllipticBit.Coalescence.SignalR;
using Microsoft.AspNetCore.SignalR.Client;
using Microsoft.Extensions.DependencyInjection;
var services = new ServiceCollection();
var connection = new HubConnectionBuilder()
.WithUrl("https://api.example.com/hubs/events")
.WithAutomaticReconnect()
.Build();
// Registers ICoalescenceSignalRRepository with the default connection.
var builder = services.AddCoalescenceSignalRServices(connection);
2. Register additional named connections (optional)
var notifications = new HubConnectionBuilder()
.WithUrl("https://api.example.com/hubs/notifications")
.Build();
builder.AddHubConnection("notifications", notifications);
3. Resolve and use a connection
using EllipticBit.Coalescence.SignalR;
var provider = services.BuildServiceProvider();
var repository = provider.GetRequiredService<ICoalescenceSignalRRepository>();
// Default connection.
HubConnection hub = repository.Get();
// Named connection.
HubConnection notifications = repository.Get("notifications");
await hub.StartAsync();
var result = await hub.InvokeCoreAsync<string>("Echo", new object[] { "hello" });
Related Packages
| Package | Description |
|---|---|
EllipticBit.Coalescence.Shared |
Shared abstractions. |
EllipticBit.Coalescence.Request |
HTTP client transport. |
EllipticBit.Coalescence.AspNetCore |
ASP.NET Core server-side support. |
EllipticBit.Coalescence.SignalR |
SignalR client transport support (this package). |
License
Licensed under the MIT License. See the LICENSE file for details.
Contributing
Contributions are welcome! To contribute:
- Fork the repository and create a feature branch.
- Make your changes, following the existing code style and conventions.
- Add or update tests where appropriate and ensure the solution builds.
- Open a merge/pull request with a clear description of the change and its motivation.
AI / LLM-assisted contributions
If any part of your contribution was generated with the assistance of a Large Language Model (LLM) or other generative AI tool, you must include the exact prompt(s) used to generate the contribution in the PROMPTS.txt file at the root of the repository. Append each prompt along with a short note describing what it produced. Pull requests containing LLM-generated content without the corresponding prompts will not be accepted.
| Product | Versions Compatible and additional computed target framework versions. |
|---|---|
| .NET | net5.0 was computed. net5.0-windows was computed. net6.0 was computed. net6.0-android was computed. net6.0-ios was computed. net6.0-maccatalyst was computed. net6.0-macos was computed. net6.0-tvos was computed. net6.0-windows was computed. net7.0 was computed. net7.0-android was computed. net7.0-ios was computed. net7.0-maccatalyst was computed. net7.0-macos was computed. net7.0-tvos was computed. net7.0-windows was computed. net8.0 was computed. net8.0-android was computed. net8.0-browser was computed. net8.0-ios was computed. net8.0-maccatalyst was computed. net8.0-macos was computed. net8.0-tvos was computed. net8.0-windows was computed. net9.0 was computed. net9.0-android was computed. net9.0-browser was computed. net9.0-ios was computed. net9.0-maccatalyst was computed. net9.0-macos was computed. net9.0-tvos was computed. net9.0-windows was computed. net10.0 was computed. 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. |
| .NET Core | netcoreapp2.0 was computed. netcoreapp2.1 was computed. netcoreapp2.2 was computed. netcoreapp3.0 was computed. netcoreapp3.1 was computed. |
| .NET Standard | netstandard2.0 is compatible. netstandard2.1 was computed. |
| .NET Framework | net461 was computed. net462 was computed. net463 was computed. net47 was computed. net471 was computed. net472 was computed. net48 was computed. net481 was computed. |
| MonoAndroid | monoandroid was computed. |
| MonoMac | monomac was computed. |
| MonoTouch | monotouch was computed. |
| Tizen | tizen40 was computed. tizen60 was computed. |
| Xamarin.iOS | xamarinios was computed. |
| Xamarin.Mac | xamarinmac was computed. |
| Xamarin.TVOS | xamarintvos was computed. |
| Xamarin.WatchOS | xamarinwatchos was computed. |
-
.NETStandard 2.0
- Microsoft.AspNetCore.SignalR.Client (>= 10.0.9)
- Microsoft.Extensions.DependencyInjection.Abstractions (>= 10.0.9)
- System.Collections.Immutable (>= 10.0.9)
- System.Text.Json (>= 10.0.9)
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.5.3 | 103 | 6/23/2026 |
| 1.5.2 | 120 | 5/9/2026 |
| 1.5.1 | 267 | 10/28/2025 |
| 1.5.0 | 317 | 3/10/2025 |
| 1.3.4 | 240 | 1/29/2025 |
| 1.3.3 | 252 | 11/16/2024 |
| 1.3.2 | 237 | 10/9/2024 |
| 1.3.1 | 252 | 9/12/2024 |
| 1.3.0 | 250 | 8/12/2024 |
| 1.2.2 | 235 | 5/1/2024 |
| 1.2.1 | 257 | 2/14/2024 |
| 1.1.0 | 291 | 1/19/2024 |
| 1.0.8 | 315 | 11/8/2023 |
| 1.0.7 | 262 | 10/14/2023 |
| 1.0.6 | 246 | 10/12/2023 |