2

I have implemented SignalR with AspNetBoilerPlate with .Net core 3.1. We have an azure server with multiple instances. So I am trying to implement Redis.

I followed this link and installed Microsoft.AspNetCore.SignalR.StackExchangeRedis package.

Added following code in startups ConfigureServices()

 services.AddSignalR().AddStackExchangeRedis("localhost:6379", options => {
            options.Configuration.ChannelPrefix = "dhub";
        });

I go to cmd and write redis-cli and added following command:

> PSUBSCRIBE d*
> PSUBSCRIBE dhub*

No message gets displayed when I send a message through SendNotificationsAsync() of IRealTimeNotifier of ASPNetBoilerPlate.

But it is not working.

Dhwani
  • 7,484
  • 17
  • 78
  • 139

0 Answers0