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.
Sign in to answer this question
It is the same account you read, post and publish with — and you will come straight back to this page.
John IwaszPosted Nov 14, 2018, 8:42 PM
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 IwaszPosted Nov 15, 2018, 8:38 AM
Sridhar YelagandhulaPosted Nov 14, 2018, 9:13 PM
John IwaszPosted Nov 14, 2018, 8:54 PM
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 YelagandhulaPosted Nov 14, 2018, 8:06 PM
John IwaszPosted Nov 14, 2018, 4:27 PM
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.