Scott Guthrie at Dot Net Startup meetup

4,027 views

Published on

Scott Guthrie slides talking about what's new on VS 11, .NET 4.5 and MVC 4, including automatic Bundling, Minifying, Real Time updates, SignalR, Asynchronous requests, Web API, Database Migration and Open Source of MVC / ASP.NET.

Published in: Technology
0 Comments
1 Like
Statistics
Notes
  • Be the first to comment

No Downloads
Views
Total views
4,027
On SlideShare
0
From Embeds
0
Number of Embeds
19
Actions
Shares
0
Downloads
18
Comments
0
Likes
1
Embeds 0
No embeds

No notes for slide
  • Modern Web Development
  • Use HTTP as an Application Protocol – not a Transport Protocol
  • Add Implement Get() for all and Get() for singleShow Content NegotiationShow Odata SupportShow using Post()Content-Type: application/json{ "Name":"blah4", "UnitPrice":45.56}// POST /api/productspublic HttpResponseMessage<Product> Post(Product product){db.Products.Add(product);db.SaveChanges();var result = new HttpResponseMessage<Product>(product, HttpStatusCode.Created);result.Headers.Location = new Uri(Request.RequestUri, "/api/products/" + product.ID.ToString());return result;}
  • Scott Guthrie at Dot Net Startup meetup

    1. 1. Demo:File->New Project
    2. 2. Demo: Bundling &Minification
    3. 3. <script src=”@Url.Content(“~/Scripts/Site.js”)”></script><script src=”~/Scripts/Site.js”></script>
    4. 4. @{ string myClass = null; if (someCondition) { myClass = ”shinyFancy”; }}<div @{if (myClass != null) { <text>class=”@myClass”</text> } }>Content</div>
    5. 5. @{ string myClass = null; if (someCondition) { myClass = ”shinyFancy”; }}<div class=”@myClass”>Content</div>
    6. 6. DatabaseMigrations
    7. 7. Demo: DatabaseMigrations with EF
    8. 8. Why Web APIs?
    9. 9. Build Richer AppsReach More Clients
    10. 10. + 100% + 50% + 3400% + 235% + 71% + 86% + 46% + 63% Source: www.programmableweb.com – current APIs: 4535
    11. 11. Embrace HTTP
    12. 12. Demo: Building a Web API
    13. 13. Demo: Calling a WebAPI from JavaScript
    14. 14. Demo: Unit Testing a Web API
    15. 15. Mobile Web
    16. 16. Adaptive Display MobileRendering Modes Template
    17. 17. Demo: Mobile Web
    18. 18. https://github.com/signalr/
    19. 19. Client – JavaScript Server - .NETvar hub = $.connection.chat; public class Chat : Hub {hub.addMessage = function (msg) { public void SendMessage(string message) $("#msgs").append("<li>" + msg + "</li>"); {}; Clients.addMessage(message); }$.connection.hub.start().done(function() { } $("#send").click(function() { hub.sendMessage($("#msg").text()); });});
    20. 20. Demo: SignalR
    21. 21. http://myserver.com/products
    22. 22. public class public void WebClient new WebClient “result" new Uri "http://www.bing.com/" public ActionResult return
    23. 23. public class public async Task ActionResult WebClient new WebClient await "www.bing.com/" return
    24. 24. The Microsoft® Accelerator for Windows Azure will host ten companies for a three month, on site, deep immersionprogram focused on building businesses that take advantage of the cloud. Through this program, Microsoft and TechStars willhelp entrepreneurs, engineers and innovators bring to life a range of business ideas that leverage the possibilities enabled byWindows Azure’s cloud platform.Program Dates: August 27 to November 29Program Venue: Seattle, Washington, USAApplication Deadline: June 29, 2012Every company participating in the program will receive: An investment of $20,000, managed by TechStars Development kit with the latest Windows and Windows Phone hardware $60,000 in Azure credit through Microsoft BizSpark Plus Demo Day presentation to angel investors, VCs, media, and industry influentialsThe Microsoft Accelerator for Windows Azure is being powered by TechStars usingthe same mentor driven methodology pioneered and proven by them in New York,Boulder, Seattle and Boston.Startups - Apply Now:aka.ms/azureaccelerator
    25. 25. Questions

    ×