Monday, March 9, 2015

more on SignalR 2

Following up on this, I got explore a little more, but just a little more today. Right-click on your UI Project and pick "New Item..." beneath the "Add" menu. Add a new "OWIN Startup class" and change the name from Startup1.cs to just Startup.cs. For an MVC app, I found myself replacing an existing Startup.cs and I also found the need to make the new class a partial class.

 
 

app.MapSignalR();

...goes inside the Configuration method.

 
 

[assembly: OwinStartup(typeof(YourProjectNameHere.Startup))]

...is an attribute you'll see in Startup.cs which loops in your change

No comments:

Post a Comment