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:
- Open Visual Studio and create a new project (File | New Project).
- Select Visual C# from the left-hand side tree and then select Console Application. Name the project...