Upgrade to Pro — share decks privately, control downloads, hide ads and more …

ASP.NET Web API and SignalR

ASP.NET Web API and SignalR

Microsoft Turkey Summer School 2014 and Microsoft MSP Kickoff 2014 - ASP.NET Web API and SignalR Talk

3a53a5136f530c121a196914aecf3936?s=128

Tugberk Ugurlu

August 11, 2014
Tweet

Transcript

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

  2. Me (narcissism FTW!)

  3. Me (narcissism FTW!)

  4. Me (narcissism FTW!)

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

  6. non-calculator-based-mobile-apps

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

  8. Makes you angry…

  9. Uncomfortable…

  10. The app does not function as intended…

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

  12. You should feel creative!

  13. ASP.NET Web API? “A framework for creating HTTP services that

    can reach a broad range of clients including browsers and mobile devices.
  14. Options for Mobile Back-end ◦ SOAP based services? ◦ Pure

    HTTP APIs (a.k.a. REST)? ◦ Security model? ◦ How to consume the service?
  15. 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
  16. None
  17. 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
  18. DEMO

  19. 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.
  20. None
  21. None
  22. DEMO

  23. 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