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

Tugberk Ugurlu

August 11, 2014
Tweet

More Decks by Tugberk Ugurlu

Other Decks in Programming

Transcript

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

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

    HTTP APIs (a.k.a. REST)? ◦ Security model? ◦ How to consume the service?
  3. 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
  4. 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
  5. 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.
  6. 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