LightMediator.EventBus.SignalR
0.5.1.3
See the version list below for details.
dotnet add package LightMediator.EventBus.SignalR --version 0.5.1.3
NuGet\Install-Package LightMediator.EventBus.SignalR -Version 0.5.1.3
<PackageReference Include="LightMediator.EventBus.SignalR" Version="0.5.1.3" />
<PackageVersion Include="LightMediator.EventBus.SignalR" Version="0.5.1.3" />
<PackageReference Include="LightMediator.EventBus.SignalR" />
paket add LightMediator.EventBus.SignalR --version 0.5.1.3
#r "nuget: LightMediator.EventBus.SignalR, 0.5.1.3"
#addin nuget:?package=LightMediator.EventBus.SignalR&version=0.5.1.3
#tool nuget:?package=LightMediator.EventBus.SignalR&version=0.5.1.3
# LightMediator.EventBus.SignalR
[](https://www.nuget.org/packages/LightMediator.EventBus.SignalR)
[](LICENSE)
**LightMediator.EventBus.SignalR** integrates [LightMediator](https://github.com/omidmloo/LightMediator) and [LightMediator.EventBus](https://github.com/omidmloo/LightMediator.EventBus) with **SignalR**, allowing events to be published across applications and domains in real time with minimal configuration.
---
## ✨ Features
- 📡 Broadcasts `IEvent` messages over SignalR with **zero boilerplate**
- 🔁 Seamless integration with `LightMediator.EventBus`
- ⚙️ Configuration-only setup – no custom handlers needed
- 🧩 Pluggable design for multi-layered, distributed applications
---
## 📦 Installation
```bash
dotnet add package LightMediator.EventBus.SignalR
🚀 Quick Setup
1. Register LightMediator with SignalR support
In Program.cs
:
No custom handlers are needed. Just configure it in Program.cs
:
services.AddLightMediator(options =>
{
options.IgnoreNamespaceInAssemblies = true;
options.IgnoreNotificationDifferences = true;
options.RegisterNotificationsByAssembly = true;
options.RegisterRequestsByAssembly = true;
options.Assemblies = new[]
{
Assembly.GetExecutingAssembly(),
Lib1.GetServiceAssembly(),
Lib2.GetServiceAssembly(),
Service1.GetServiceAssembly()
};
options.AddLightMediatorEventBus(services)
.UseSignalRService(
_configuration.GetSection("LighMediatorSignalRSettings"),
ignoreUntrustedCertificate: true
);
});
This setup will automatically publish INotification
implementations across your system using SignalR under the hood.
2. Add the SignalR Hub endpoint
In your Startup.cs
or Program.cs
app configuration:
app.UseRouting();
app.UseEndpoints(endpoints =>
{
endpoints.MapControllers();
// Registers the internal SignalR hub used by LightMediator
endpoints.ConfigureLightMediatorSignalR();
});
🔧 Configuration
Add this to your appsettings.json
:
"LighMediatorSignalRSettings": {
"ServerAddress": "https://localhost:5000/",
"AccessToken": "your-auth-token",
}
🔐
AccessToken
is optional depending on your SignalR configuration.
🧱 Dependencies
This package depends on:
- LightMediator
- LightMediator.EventBus
Microsoft.AspNetCore.SignalR.Client
📝 License
Licensed under the MIT License.
💬 Contact
For issues or contributions, visit the GitHub repo or contact @omidmloo.
Product | Versions Compatible and additional computed target framework versions. |
---|---|
.NET | net9.0 is compatible. 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. |
-
net9.0
- LightMediator.EventBus (>= 0.5.1.1)
- Microsoft.AspNetCore.Http.Abstractions (>= 2.3.0)
- Microsoft.AspNetCore.Routing (>= 2.3.0)
- Microsoft.AspNetCore.SignalR (>= 1.2.0)
- Microsoft.AspNetCore.SignalR.Client (>= 9.0.2)
- Microsoft.Extensions.Hosting (>= 9.0.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 |
---|---|---|
0.5.1.14 | 101 | 5/31/2025 |
0.5.1.12 | 79 | 5/23/2025 |
0.5.1.10 | 136 | 5/22/2025 |
0.5.1.9 | 156 | 5/21/2025 |
0.5.1.8 | 141 | 5/21/2025 |
0.5.1.7 | 143 | 5/19/2025 |
0.5.1.6 | 143 | 5/18/2025 |
0.5.1.5 | 96 | 5/18/2025 |
0.5.1.4 | 96 | 5/18/2025 |
0.5.1.3 | 98 | 5/18/2025 |
0.5.1.1 | 242 | 5/13/2025 |
0.5.1 | 226 | 5/13/2025 |
0.5.0 | 209 | 5/12/2025 |
- Update readme and documentation