O'Reilly logo

SignalR - Real-time Application Development - Second Edition by Einar Ingebrigtsen

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

Getting started with the server-side

We will need some C# code to initialize the server side of things.

SignalR is configured through something called Open Web Interface for .NET (OWIN). There are other, more traditional ways of doing this, but this is the preferred way and also conceptually how things are evolving in the ASP.NET space. We will be using it throughout the book in different forms.

Tip

Its goal is to define a standard interface between .NET web servers and web applications. Read more at http://owin.org.

  1. Let's add a class called Startup to the project. Right-click on the project and select Add | Class. Give the file a name Startup.cs.
  2. Replace all the using statements with the following:
    using Microsoft.Owin;
    using Owin;
  3. Inside the Startup ...

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required