SingalR in Asp.Net.webapi
How to implement SignalR in WebApi ?
Any one please tell me
Know the answer? Post it. Somebody with the same question will find it here.
Answer a question in the forums and earn +20 SHARP for every answer.
See unanswered questions
DevSocialUpcoming · 3rd editionAI Agents ConferenceDec 1–3, 2026Live onlineFree to attend5days leftRegister
John IwaszRank #811 · 2.8K reputationPosted Nov 14, 2018, 3:42 PM EST
If you are using the .NET Framework, you can still reference the ASP.NET Core Nuget packages. The lastest ASP.NET Core Nuget packages are deveoped using .NET Standard 2.0. If you are using the .NET Framework 4.6.1 or later, you can reference them.
The ASP.NET Core Nuget package is here:
https://www.nuget.org/packages/Microsoft.AspNetCore/
If you expend the Dependencies tab on that page, you'll see that it supports .NET Standard 2.0 and so you can reference it from either .NET Framework projects or .NET Core projects.
John IwaszRank #811 · 2.8K reputationPosted Nov 14, 2018, 11:27 AM EST
https://docs.microsoft.com/en-us/aspnet/core/tutorials/signalr
The sample creates a Web Application, but you can create a Web API project type instead and use a static HTTP page as the client. The controlled in the sample tutorial can be used in a Web API project.
Sridhar YelagandhulaRank #1,798 · 828 reputationPosted Nov 14, 2018, 3:06 PM EST
John IwaszRank #811 · 2.8K reputationPosted Nov 14, 2018, 3:54 PM EST
https://docs.microsoft.com/en-us/aspnet/signalr/overview/getting-started/tutorial-getting-started-with-signalr
The project uses MVC, but it can be adapted to work with a Web API controller.
Sridhar YelagandhulaRank #1,798 · 828 reputationPosted Nov 14, 2018, 4:13 PM EST
John IwaszRank #811 · 2.8K reputationPosted Nov 15, 2018, 3:38 AM EST