ASP.NET MVC 4 Overview

1,661 views
1,584 views

Published on

My ASP.NET MVC 4 introduction session at Sinergija12.

Published in: Technology
1 Comment
0 Likes
Statistics
Notes
  • Be the first to like this

No Downloads
Views
Total views
1,661
On SlideShare
0
From Embeds
0
Number of Embeds
1
Actions
Shares
0
Downloads
17
Comments
1
Likes
0
Embeds 0
No embeds

No notes for slide

ASP.NET MVC 4 Overview

  1. 1. ASP.NET MVC 4 Overview23.10.2012Gunnar Peipman
  2. 2. About me• Name: Gunnar Peipman• From: Tallinn, Estonia• MVP: ASP.NET, 5 years• Job: developer, architect,consultant• Community: speaker, blogger• Hobbies: new tech, beers,heavy metal, national cuisinestravelling
  3. 3. Agenda• New project templates• Support for DotNetOpenAuth• Bundling and minification• Device based filtering• Mobile enhancements• Task support for async controllers• ASP.NET Web API• What is coming next?
  4. 4. New project templates
  5. 5. Available templates• Empty• Basic• Internet application• Intranet application• Mobile application• Web API• Single Page Application
  6. 6. Support for DotNetOpenAuth
  7. 7. What is DotNetOpenAuth• Library that supports different externalauthentication systems• Supported:– Twitter– Live ID– Google Accounts– Facebook– All othet OAuth providers• Now ships with ASP.NET MVC
  8. 8. How it is used in MVC?• Coming with internet application template• Switched off by default• Easy to enable and use• Users can log in through external systems• Users can join their different accounts on yourapplication level
  9. 9. Demo: DotNetOpenAuth
  10. 10. Bundling and minification
  11. 11. Why bundling and minification?• Bundling: files of same time are concatenated• More than one group of files is supported• Saves some requests to web server• Minificaton: making script and css files smaller• Whitespace is removed• For JS it is possible to use short names of vars• Saves some bandwidth• For user: page loads faster
  12. 12. Demo: Bundling and minification
  13. 13. ResultsFiles SizeNo optimizations 21 750KBBundling and minification 10 337KB52% 55%
  14. 14. Mobile enhancements
  15. 15. New mobile sites• Built on jQuery mobile• Support bundling and minification• Can use device based views• Can use CSS media queries• Support Viewport meta tag
  16. 16. Demo: Mobile site in action
  17. 17. Device based filtering
  18. 18. Era of multiple devices
  19. 19. What are challences?• Different screen sizes• Support for touch/multi-touch• Different technical platforms
  20. 20. Device based filtering• ASP.NET MVC detects devices automatically• If there is view for device then it is usedautomatically• Device settings can be overridden in code
  21. 21. Demo: Device based filtering
  22. 22. Task support for async controllers
  23. 23. ASP.NET Web API
  24. 24. What is Web API?• Simple and lightweight framework extension towrite Web 2.0 API-s• Uses ASP.NET MVC framework• Makes use of HTTP standard command• Supports content negotiation• Supports self-hosting
  25. 25. Web API and WCF• Web API:– is quick and simple service layer– is scaled with web application– perfect fit for modern public web apps and their API-s• WCF:– is powerful enterprise-class service framework– scales differently than web application– supports complex components like workflows
  26. 26. Demo: Web API controllers
  27. 27. What’s coming next
  28. 28. Planned for Fall 2012 Update• SignalR• Support for Windows Azure Active Directory• Web API – OData, tracing, help page generation• Single Page Application• Project template for Facebook applications• Web optimization framework update• NuGet update• Providers system update
  29. 29. Thank you for your attention.
  30. 30. Help us choose the best Sinergija lecturer! HTC and Microsoft will awardyou – at the conference end, we’ll give one HTC Windows Phone 8Xto someone from the audience – randomly.Go to www.mssinergija.net, log in and cast your votes!You can rate only lectures that you were present at, just once. More lectures you rate, more chances you have.Please use computers at the front of this room, or rate lecture from your phone or home computer, at Sinergija portal.This prize contest will end at Thursday, October 24th at 21:00. Winner will be announced at the official Sinergija webportal, www.mssinergija.netPlease rate this lectureand WIN Windows Phone 8Xby HTC!Powered by:
  31. 31. Microsoft andOpen Sourcegateway for deeperexploration ofopen sourceengagementshttp://www.microsoft.com/opennessPort25blogs from theplatform communityand the OSS Lab teamshttp://Port25.technet.comCodeplexresources fordevelopers andconsumers of opensource projectshttp://www.codeplex.comInteroperabilityBridgestechnical collaborativeworkshttp://www.interoperabilitybridges.comOpen Upcross-IndustryInteroperability andStandards activitieshttp://www.microsoft.com/interop/openupShared Sourceportal forProgrammaticallysharing codehttp://www.microsoft.com/sharedsourceODataopen source starter kitfor Internet publishingof Government datasetsusing the Open Datahttp://ogdisdk.cloudapp.netOpen Specprotocols, file formats,standards, technicalSpecificationshttp://www.microsoft.com/openspecificationsBizSparkProgram for Start-Upcompanies from bothcommercial and opensource backgroundshttp://www.microsoft.com/bizsparkOpenness and Interoperability @MicrosoftHow can I receive up-to-date Openness announcements from Microsoft?In addition to the websites above, you can receive regular updates toMicrosoft’s openness, interoperability and standards efforts via the followingchannels:• http://blogs.technet.com/b/openness/• http://blogs.msdn.com/b/interoperability/• http://twitter.com/OpenAtMicrosoft• http://port25.technet.com• http://channel9.msdn.com/Blogs/Interoperability

×