Slide 1

Slide 1 text

ASP.NET Web API and SignalR TUGBERK UGURLU HTTP://TUGBERKUGURLU.COM @TOURISMGEEK

Slide 2

Slide 2 text

Me (narcissism FTW!)

Slide 3

Slide 3 text

Me (narcissism FTW!)

Slide 4

Slide 4 text

Me (narcissism FTW!)

Slide 5

Slide 5 text

Shameless Plug! http://amzn.to/prowebapi http://www.apress.com/9781430247258

Slide 6

Slide 6 text

non-calculator-based-mobile-apps

Slide 7

Slide 7 text

From http://channel9.msdn.com/Events/Build/2014/3-603

Slide 8

Slide 8 text

Makes you angry…

Slide 9

Slide 9 text

Uncomfortable…

Slide 10

Slide 10 text

The app does not function as intended…

Slide 11

Slide 11 text

But… this shouldn’t be what you feeling :s

Slide 12

Slide 12 text

You should feel creative!

Slide 13

Slide 13 text

ASP.NET Web API? “A framework for creating HTTP services that can reach a broad range of clients including browsers and mobile devices.

Slide 14

Slide 14 text

Options for Mobile Back-end ◦ SOAP based services? ◦ Pure HTTP APIs (a.k.a. REST)? ◦ Security model? ◦ How to consume the service?

Slide 15

Slide 15 text

ASP.NET Web API Strengths ◦ First-class modern HTTP programming model ◦ Easily map resources to URIs and implement the uniform interface of HTTP ◦ Rich support for formats and HTTP content negotiation ◦ Request validation ◦ Enable hypermedia with link generation ◦ Separate out cross cutting concerns ◦ Help page generation ◦ Flexible hosting ◦ Light-weight, testable, scales From http://channel9.msdn.com/Events/Build/2014/3-603

Slide 16

Slide 16 text

No content

Slide 17

Slide 17 text

Where to get the stuff? ◦ Get it from NuGet ◦ ASP.NET Web API 2 ships with Visual Studio 2013 ◦ Install ASP.NET and Web Tools 2013.1 for Visual Studio 2012 ◦ ASP.NET Web API 2.1 ships with Visual Studio 2013.2 ◦ Requires .NET 4.5 or later ◦ Docs and samples at http://www.asp.net/web-api ◦ Includes free Pluralsight courses! ◦ See the code at http://aspnetwebstack.codeplex.com ◦ Try out the latest nightly build on MyGet From http://channel9.msdn.com/Events/Build/2014/3-603

Slide 18

Slide 18 text

DEMO

Slide 19

Slide 19 text

ASP.NET SignalR “SignalR is a real-time Web Framework which abstracts the transportation layer by allowing you to fall back to other compatible techniques for older browsers.

Slide 20

Slide 20 text

No content

Slide 21

Slide 21 text

No content

Slide 22

Slide 22 text

DEMO

Slide 23

Slide 23 text

Resources ◦ ASP.NET Web API Home: http://asp.net/web-api ◦ ASP.NET Web Stack Source code: http://aspnetwebstack.codeplex.com ◦ Securing a Web API with Windows Azure AD: http://www.cloudidentity.com/blog/2013/07/23/securing- a-web-api-with-windows-azure-ad-and-katana ◦ Why REST: http://stackoverflow.com/questions/90451/why-would-one-use-rest-instead-of-soap-based- services ◦ ASP.NET SignalR: http://asp.net/signalr ◦ ASP.NET SignalR Source Code: https://github.com/SignalR/SignalR ◦ SignalR (dotnetConf): http://channel9.msdn.com/Events/dotnetConf/2014/SignalR ◦ Katana Project: https://katanaproject.codeplex.com