LightMediator.EventBus.SignalR 0.5.1.8

There is a newer version of this package available.
See the version list below for details.
dotnet add package LightMediator.EventBus.SignalR --version 0.5.1.8
                    
NuGet\Install-Package LightMediator.EventBus.SignalR -Version 0.5.1.8
                    
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="LightMediator.EventBus.SignalR" Version="0.5.1.8" />
                    
For projects that support PackageReference, copy this XML node into the project file to reference the package.
<PackageVersion Include="LightMediator.EventBus.SignalR" Version="0.5.1.8" />
                    
Directory.Packages.props
<PackageReference Include="LightMediator.EventBus.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 LightMediator.EventBus.SignalR --version 0.5.1.8
                    
#r "nuget: LightMediator.EventBus.SignalR, 0.5.1.8"
                    
#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.
#addin nuget:?package=LightMediator.EventBus.SignalR&version=0.5.1.8
                    
Install as a Cake Addin
#tool nuget:?package=LightMediator.EventBus.SignalR&version=0.5.1.8
                    
Install as a Cake Tool

LightMediator.EventBus.SignalR

NuGet License

LightMediator.EventBus.SignalR integrates LightMediator and LightMediator.EventBus with SignalR, allowing events to be published across applications and domains in real time with minimal configuration.


✨ Features

  • 📡 Broadcasts INotitifcation 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

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:


📝 License

Licensed under the MIT License.


💬 Contact

For issues or contributions, visit the GitHub repo or contact @omidmloo.

Product 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. 
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
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

- fixed signalr connection state