Mvc 44. Previous Version In MVC 4.0
public class Products : AsyncController {
public void IndexAsync() {
WebClient wc1 = new WebClient();
AsyncManager.OutstandingOperations
.Increment();
wc1.DownloadStringCompleted +=
(sender, e) => {
AsyncManager.Parameters[“resul
t"] = e.Result;
AsyncManager.OutstandingOperat
ions.Decrement();
};
wc1.DownloadStringAsync(new
Uri("http://www.bing.com/"));
}
public ActionResult
IndexCompleted(string result) {
return View();
}
}
public class Products : Controller {
public async Task<ActionResult>
IndexAsync() {
WebClient web = new WebClient();
string result = await
web.DownloadStringAsync("www.bing.com/");
return View();
}
}
5. public static void RegisterBundles(BundleCollection bundles)
{
BundleTable.EnableOptimizations = true;
bundles.Add(new ScriptBundle("~/bundles/jquery").Include(
"~/Scripts/jquery-{version}.js"));
bundles.Add(new StyleBundle
("~/Content/css").Include("~/Content/site.css"));
bundles.Add(new
StyleBundle("~/Content/themes/base/css").Include(
"~/Content/themes/base/jquery.ui.core.css",
"~/Content/themes/base/jquery.ui.theme.css"));
}
6. Enabling Logins from Facebook and Other Sites
Using OAuth and OpenID
App_Start folder and separate classes
◦ Routing
◦ Bundling
◦ Filters
◦ etc..
Display Modes
◦ Desktop
◦ Mobile
Azure SDK
Database Migrations
7. ASP.NET Web API
Mobile Project Template
Enhancements to Default Project Templates
Empty Project Template