2

After my research SignalR is a middleware I can use in ASP. Is it possible to host the server part in for example a console application or a dll?

I've read about SignalR webhost, but the guide is for .Net Framework: https://learn.microsoft.com/de-de/aspnet/signalr/overview/deployment/tutorial-signalr-self-host

J. Doe
  • 522
  • 6
  • 22
  • SignalR is from 3.x is now native for .NET Core. What do you want to do exactly here? Using a .NET console app with SignalR Core? – Kiril1512 May 15 '20 at 13:58
  • SignalR has two components - server and client. Not sure if it is possible to have server without ASP(and from top of my head i don't see a lot of situations why you will need that) but client can be hosted [without ASP](https://learn.microsoft.com/en-us/aspnet/core/signalr/dotnet-client?view=aspnetcore-3.1&tabs=visual-studio) – Guru Stron May 15 '20 at 14:02
  • @Kiril1512 Exactly, Like Hosting it in a console application, since I do not want an IIS. Isn't SignalR just a middleware I can use in ASP ? My question is only about the server part – J. Doe May 15 '20 at 14:07

1 Answers1

3

Not 100% sure what you are asking.

SignalR is built into ASP.NET core, you can reference and use it within the same application, which can be running in IIS, or self hosted, even asp.net core web apps are basically console apps, but there will need to be a web (internet aspect to your application.

There are also specific Azure services to handle signal R if that helps https://azure.microsoft.com/en-gb/services/signalr-service/

Mark Redman
  • 24,079
  • 20
  • 92
  • 147