Roger Lipscombe
Roger Lipscombe

Reputation: 91865

What are my options for self-hosting SignalR?

I want to add SignalR to my Windows service, written in C#, targetting .NET 4.0. The Microsoft.Owin.* packages appear to require .NET 4.5.

I'd also like to include NancyFX in the same process, for other reasons.

What's the best way to self-host SignalR?

Upvotes: 2

Views: 2305

Answers (3)

Stephen Hewlett
Stephen Hewlett

Reputation: 2445

If you install the packages as listed at https://github.com/SignalR/SignalR/wiki/Self-host they should work just fine under .NET 4.0. It's worth remembering that you can always use the package manager console to explicitly install older versions of packages if you need to - although for SignalR at the time of writing there is no need to do this.

Upvotes: 0

Steven Robbins
Steven Robbins

Reputation: 26599

The only Microsoft OWIN package that requires 4.5 is owinhost.exe (used to be katana.exe), you can still use normal http listener (Microsoft.Owin.Host.HttpListener) to self host just fine.

Upvotes: 2

user1693593
user1693593

Reputation:

I installed the signalR package (v. 1.1.2) using .net 4.0. Work as a charm. I cannot use 4.5 as I am still at VS2010.

I use it with a standard web project with a WebService handling the communication.

Upvotes: 3

Related Questions