简体   繁体   中英

SignalR.Owin vs. SignalR.SelfHost

I want to use SignalR selfhosted with Owin.

What are the differences between these two packages:

Microsoft ASP.NET SignalR OWIN

and

Microsoft ASP.NET SignalR Self Host

When to use one or other?

Microsoft ASP.NET SignalR Self Host still uses OWIN to startup. The only difference is that the Self Hosted SignalR server doesn't need to be nested in an ASP.NET web application hosted in IIS. It can be a simple console application.

See MSDN for more info:

Reasons for not hosting in IIS include:

  • Environments where IIS is not available or desirable, such as an existing server farm without IIS.
  • The performance overhead of IIS needs to be avoided.
  • SignalR functionality is to be added to an exising application that runs in a Windows Service, Azure worker role, or other process.

I think the main difference is, that Microsoft ASP.NET SignalR OWIN is an older package, because it depends on Microsoft.AspNet.SignalR.Core (>= 1.2.2) . And Microsoft ASP.NET SignalR Self Host depends on Microsoft.AspNet.SignalR.Core (>= 2.2.0) . That is why I will use the Microsoft ASP.NET SignalR Self Host package.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM