在针对完整.NET Framework的asp.net Core应用上使用SignalR [英] Using SignalR on an asp.net Core app that targets the full .NET Framework

查看:317
本文介绍了在针对完整.NET Framework的asp.net Core应用上使用SignalR的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我有一个现有的ASP.net Core应用,该应用的目标是完整的4.6.1 .NET Framework而不是.NETCore framework.

I have an existing ASP.net Core app that targets the full 4.6.1 .NET Framework instead of the .NETCore framework.

我需要知道:有什么方法可以在这样的应用程序上使用SignalR吗?在网上阅读后,我发现有些人声称有有效的解决方法,但是我找不到确切的操作方法的详细信息.

I need to know: is there ANY way to use SignalR on such an app? Reading around the net I found some people claimning to have fount workarounds, but I cannot find any details on exactly HOW to do it.

有关此主题的任何信息,将不胜感激.

Any info on this subject is appreciated.

推荐答案

好吧,经过大量搜索,我找到了一个实现此目标的示例项目.您可以在这里找到它:

Well, after a lot of searching I found a sample project that implements this. You can find it here:

https://github.com/jkells/signalr2-netcore-websockets-sample

我在我的项目中实现了相同的解决方案,并且有效!请仔细阅读github自述文件中的信息:您必须在Visual Studio中将它们提到的存储库添加到您的nuget源中,否则程序包将无法正确还原.

I implemented their same solution on my project and it works! Read the info on the github Readme carefully: you have to add the repository they mention to your nuget sources in visual studio or packages won't restore correctly.

这篇关于在针对完整.NET Framework的asp.net Core应用上使用SignalR的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
相关文章
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆