Using SignalR in ASP.NET Core 1.0

2019-03-31 00:20发布

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?

2条回答
Juvenile、少年°
2楼-- · 2019-03-31 00:26

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):

SignalR project

Hope that helps! :)

查看更多
Deceive 欺骗
3楼-- · 2019-03-31 00:40

I had the same issue with SignalR and the upgrade to core 1.0 rtm. The answer from above does not work anymore so I did the following:

I use this nugget feed:
https://www.myget.org/F/aspnetcirelease/api/v3/index.json
and this nuget package:
"Microsoft.AspNetCore.SignalR.Server": "0.1.0-rtm-21431"

This should help until the first release of SignalR 3

查看更多
登录 后发表回答