Book Image

SignalR: Real-time Application Development - Second Edition

By : Einar Ingerbrigsten
Book Image

SignalR: Real-time Application Development - Second Edition

By: Einar Ingerbrigsten

Overview of this book

Table of Contents (19 chapters)
SignalR – Real-time Application Development Second Edition
Credits
About the Author
Acknowledgments
About the Reviewers
www.PacktPub.com
Preface
11
Hosting a Server Using Self-hosted OWIN
Index

Self-hosting


Sometimes you really don't want to have a big footprint on your application when you're deploying. You don't want to have the IIS dependency or other web server software, you just your own executable and that's it. In combination with OWIN Open Web Interface for .NET, SignalR supports this out of the box. OWIN is something to keep an eye on and get your hands dirty with, as this is what will make up the Microsoft web stack moving forward, not only for self-hosting but also for all kinds of hosts. It represents an abstraction that is not linked to any particular environment and makes it easier to move between different environments.

Let's get started by creating a new solution. This time, the focus will be on how to achieve the technical solution of self-hosting and not what the solution does:

  1. Open Visual Studio and create a new project (File | New Project).

  2. Select Visual C# from the left-hand side tree and then select Console Application. Name the project Chapter11:

Adding the needed...