Skip to content

phuongdayroi/SignalR-RabbitMQ

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

9 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

ASP.NET Core SignalR RabbitMQ Scaleout

About

maskx.AspNetCore.SignalR.RabbitMQ is an implementation of an HubLifetimeManager using RabbitMQ as the backing store. This allows a signalr web application to be scaled across a web farm.

Usage

Install

A compiled library is available via NuGet

To install via the nuget package console

Install-Package maskx.AspNetCore.SignalR.RabbitMQ

To install via the nuget user interface in Visual Studio the package to search for is "maskx.AspNetCore.SignalR.RabbitMQ"

Configure

Modify Startup.cs

public void ConfigureServices(IServiceCollection services)
{
    services.AddSignalR()
            .AddRabbitMQ(options =>
            {
                options.ConnectionFactory = new ConnectionFactory()
                {
                    HostName = "localhost",
                    Port = 5672
                };
                options.ExchangeName = "signalr-RabbitMQ";
            });
}

License

The MIT License (MIT) - See file 'LICENSE' in this project

Reference

About

ASP.NET Core SignalR RabbitMQ Scaleout

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • C# 100.0%