





















在 IIS 上启用 Websocket
在 Windows Server 2012 或更高版本上启用对 WebSocket 协议的支持:
备注
使用 IIS Express 时无需执行这些步骤
https://learn.microsoft.com/zh-cn/aspnet/core/fundamentals/websockets?view=aspnetcore-6.0#iisiis-express-support-1
在 SignalR 应用中,安装以下 NuGet 包:
Microsoft.AspNetCore.SignalR.StackExchangeRedis在 Startup.ConfigureServices 方法中,调用 AddStackExchangeRedis:
services.AddSignalR().AddStackExchangeRedis("<your_Redis_connection_string>");
https://learn.microsoft.com/zh-cn/aspnet/core/signalr/redis-backplane?view=aspnetcore-6.0
此内容由惯性聚合(RSS阅读器)自动聚合整理,仅供阅读参考。 原文来自 — 版权归原作者所有。