1 / 23

MVC4 WebAPI VS2012 async / await SignalR

New features in ASP.NET 4.5. MVC4 WebAPI VS2012 async / await SignalR. Jakub Jedryszek jakub.jedryszek@gmail.com. AGENDA. ASP.NET  MVC 4 Web API Database migrations Bundling & Minification Oauth Visual Studio 2012 Improved editors : HTML , CSS i JavaScript

ronli
Download Presentation

MVC4 WebAPI VS2012 async / await SignalR

An Image/Link below is provided (as is) to download presentation Download Policy: Content on the Website is provided to you AS IS for your information and personal use and may not be sold / licensed / shared on other websites without getting consent from its author. Content is provided to you AS IS for your information and personal use only. Download presentation by click this link. While downloading, if for some reason you are not able to download a presentation, the publisher may have deleted the file from their server. During download, if you can't get a presentation, the file might be deleted by the publisher.

E N D

Presentation Transcript


  1. New features in ASP.NET 4.5 MVC4 WebAPI VS2012 async/awaitSignalR Jakub Jedryszek jakub.jedryszek@gmail.com

  2. AGENDA • ASP.NET MVC 4 • Web API • Database migrations • Bundling & Minification • Oauth • Visual Studio 2012 • Improvededitors: HTML, CSS i JavaScript • Web Publishing improvements • PageInspector • async/await • SignalR& WebSockets

  3. .NET 4.5 Released on 15 August 2012 Supportedonly on Windows Vista orlater .NET for Metro style apps Not supported in Visual Studio 2010  Built-in Visual Studio 2012 

  4. Top ASP.NET 4.5 and Visual Studio 2012 features • ASP.NET MVC4 • ASP.NET WebAPI • Database migrations Bundling&Optimization • Oauth • Visual Studio 2012 • Metro style • HTML/CSS/JS Editors • Web Publishing • PageInspector SignalR & WebSockets async and await

  5. ONE ASP.NET

  6. ASP.NET MVC 4 New project templates Razorimprovements Bundling and minification Mobile features = Display modes Database migrations OAuth ASP.NET Web API

  7. NEW DEFAULT TEMPLATES MVC 3 MVC 4

  8. NEW DEFAULT TEMPLATES Empty (MVC 3) Empty (MVC 4) Basic (MVC 4)

  9. RAZOR IMPROVEMENTS Resolving~/withinall standard HTML attributes In MVC3: In MVC4:

  10. RAZOR IMPROVEMENTS Auto-ignoreattributes with nullvalue In MVC3: In MVC4:

  11. BUNDLING AND MINIFICATION Bundling – bundlemultiplefilesinto a single file Minification – removewhitespaces, comments and shorteringvariablenames to one character

  12. MOBILE FEATURES = DISPLAY MODES • Overridelayout, views, and partial views (globally or/and for an individual view) • Control over layout and partial override enforcement using the RequireConsistentDisplayModeproperty • A view-switcher widget for mobile views than can also be displayed in desktop views • Support for specific browsers, such as the iPhone browser

  13. DATABASE MIGRATIONS PM>Enable-Migrations PM>Add-Migration MyMigration PM> Update-Database PM>Update-Database –TargetMigrationMyMigration PM> Update-Database –Verbose PM> Update-Database –Script –SourceMigration:$InitialDatabase –TargetMigration:MyMigration

  14. DATABASE MIGRATIONS - AUTOMIGRATIONS 1. Enable auto migrations 2. Set DB initializer

  15. OAUTH Login with: Facebook: http://developers.facebook.com/ Twitter: http://dev.twitter.com/ Google: http://developers.google.com/ Microsoft: http://manage.dev.live.com/

  16. ASP.NET Web API Framework for creating HTTP services RESTful GET, POST, PUT, DELETE Format: JSON/XML

  17. Visual Studio 2012 Quicklaunch New Metro style layout IIS Express for Web Development Improvededitors for HTML, CSS and JavaScript Web Publishimprovements PageInspector

  18. async and await in ASP.NET 4.0

  19. async and await in ASP.NET 4.5

  20. SignalR & WebSockets Persistentconnectionclient-server Design for buildmulti-user, real-time web applcations Allowsserver-to-clientpush and RPC Scalable (100 000 messages per second) Auto negotitateconnection Server sentevents (EventSource)

  21. BOOK

  22. RESOURCES • ASP.NET website: www.asp.net • MVC4: http://www.asp.net/mvc/tutorials/mvc-4 • Channel9: http://channel9.msdn.com • Scott Hanselman – 5 minute videos about ASP.NET 4.5 and VS2012: http://www.hanselman.com/blog/VisualStudio2012AndNETFramework45IsRELEASEDHeres5MinuteVideosToGetYouUpToSpeedQuick.aspx • Randy Pausch – Last Lecture: http://www.youtube.com/watch?v=FY1vz5b_aXE • Top 13+ mustread: http://webhosting.pl/13_.ksiazek.hakerow.i.nie.tylko.ktore.powinien.przeczytac.kazdy.programista

  23. ?

More Related