在 ASP.NET Core 1.0 中使用 SignalR [英] Using SignalR in ASP.NET Core 1.0

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

问题描述

我们有一个 ASP.NET Core 1.0 RC1 应用程序,我们希望在其中包含 SignalR.但是,SignalR 还不是 ASP.NET Core 1.0 的一部分.

有没有办法将 SignalR 仍然合并到我们现有的应用程序中,或者我们是否必须研究一些其他网络套接字库,例如 socket.io?

解决方案

虽然 SignalR 3 不会成为 ASP.NET Core 1.0 版本的一部分,但您仍然可以在 ASP.NET Core Web 应用项目中使用 SignalR.

事实上,在 Github 上的官方aspnet"帐户上查看这个 SignalR 项目:

  • 希望有帮助!:)

    We have an ASP.NET Core 1.0 RC1 application and we want to incorporate SignalR in it. However, SignalR is not yet a part of ASP.NET Core 1.0.

    Is there a way to still incorporate SignalR in our existing app or will we have to look into some other web sockets library such as socket.io?

    解决方案

    Although SignalR 3 won't be a part of the 1.0 release of ASP.NET Core, you can still use SignalR in an ASP.NET Core web app project.

    In fact, check out this SignalR project on the official "aspnet" account on Github:

    I download the source code, and here's what it looks like in VS2015 (see screenshot below):

    Hope that helps! :)

    这篇关于在 ASP.NET Core 1.0 中使用 SignalR的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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