Slide 1

Slide 1 text

The Sonora Software Developers Group

Slide 2

Slide 2 text

Help yourself to food and drink Mix, mingle, and chat Thanks to Front Porch for the food, drink, and location Welcome

Slide 3

Slide 3 text

SignalR Incredibly simple real-time web for .NET

Slide 4

Slide 4 text

ASP.NET SignalR is a library for ASP.NET developers that makes it incredibly simple to add real-time web functionality to your applications. What is "real-time web" functionality? It's the ability to have your server-side code push content to the connected clients as it happens, in real-time. Or… A real cool .NET framework hosted in ASP.NET and a JavaScript library (on the client side) that helps build collaborative web apps quickly and painlessly. It is open source and freely available on GitHub. And… It doesn’t have to be hosted in ASP.NET. It can also be hosted using OWIN (Open Web Interface for .NET) or self host (console, windows service, azure, etc.). The JavaScript library isn’t the only client side implementation as well. As of today, there are jQuery, Native .NET, WP7, iOS, Silverlight, WinRT, and Android (via Mono) implementations. What is SignalR?

Slide 5

Slide 5 text

SignalR can be used to add any sort of "real-time" web functionality to your ASP.NET application. While chat is often used as an example, you can do a whole lot more. Any time a user refreshes a web page to see new data, or the page implements Ajax long polling to retrieve new data, is candidate for using SignalR. It also enables completely new types of applications, that require high frequency updates from the server, e.g. real-time gaming. For a great example of this see the ShootR game SignalR abstracts the raw technique of keeping connections open between a client and a server. SignalR uses a fallback mechanism to connect the browser to the server. After an initial negotiation request the following transports are tried in order until a successful connection can be made: WebSockets, Server Sent Events (EventSource), Forever Frame, or Ajax long polling. What does it solve?

Slide 6

Slide 6 text

Reference http://scottksmith95.wordpress.com/2012/10/30/sig nalr-awesome-real-time-with-net/ Demo 1

Slide 7

Slide 7 text

Reference http://scottksmith95.wordpress.com/2012/10/31/sig nalr-awesome-real-time-with-net-part-2/ Demo 2

Slide 8

Slide 8 text

Q & A

Slide 9

Slide 9 text

 Scott Smith  [email protected]  Blog: http://scottksmith95.wordpress.com/2012/10/30/signalr-awesome-real-time-with-net/  Code: https://github.com/scottksmith95/SignalRTutorial  Code: https://github.com/scottksmith95/SignalRTutorial-Part2  Slides: https://speakerdeck.com/u/scottksmith95 Resources