SlideShare uma empresa Scribd logo
1 de 20
ASP.NET MVC 4
Danijel Malik
Artifis Danijel Malik s.p.



Twitter: @DanijelMalik
Email: danijel@artifis.si

                             Nivo 300
About me
•   Developer
•   Developer
•   Developer
•   Tech Lead
•   Developer
•   Architect…who you? No you’re not!!!
•   Developer
•   Developer
•   Tech Lead…come on…stop it already…you’re a developer!!!!




                                                               Nivo 300
New features
•   Bundling/Minification Support
•   Database Migrations
•   Mobile Web
•   Web APIs
•   Real Time Communication
•   Asynchronous Support

• Works with VS 2010/.NET 4 and built-into VS11




                                                  Nivo 300
Bundling and Minification
• Improve loading performance of JavaScript and CSS
   • Reduce # and size of HTTP requests


• Works by convention (no configuration required)

• Fully customizable and extensible




                                                      Nivo 300
DEMO

Bundling & minification




                          Nivo 300
Razor improvements
• Razor now resolves ~/ within all standard HTML attributes

• From this:


      <script
      src=”@Url.Content(“~/Scripts/Site.js”)”></script>

• To this:


      <script src=”~/Scripts/Site.js”></script>

                                                              @
                                                              Nivo 300
Conditional Attribute Enhancements
• From this:

  @{
    string myClass = null;

      if (someCondition) {
          myClass = ”shinyFancy”;
      }
  }

  <div @{if (myClass != null) { <text>class=”@myClass”</text> }
  }>Content</div>


                                                            Nivo 300
Conditional Attribute Enhancements
• To this:

  @{
    string myClass = null;

      if (someCondition) {
          myClass = ”shinyFancy”;
      }
  }
• Will automatically omit attribute name if value is null
  <div class=”@myClass”>Content</div>



                                                            Nivo 300
Database Migrations
• EF Code First provides a convention-over-configuration based
  development approach

• Migrations == code-oriented approach to evolve DB schema
   • Code focused
   • Developer friendly
   • Can be used to generate SQL change scripts to pass off to a DBA




                                                                 Nivo 300
DEMO

Database Migrations




                      Nivo 300
Mobile Web
• Adaptive Rendering
   • Use of CSS Media Queries within default project templates

• Display Modes
   • Selectively adapt views based on devices

• Mobile Optimized Templates
   • jQuery Mobile




                                                                 Nivo 300
Mobile Web Development – A
Spectrum

       Adaptive   Display    Mobile
      Rendering   Modes     Template




                                       Nivo 300
DEMO

Mobile Web




             Nivo 300
DEMO

Web API




          Nivo 300
Web API Hosting
• Multiple ways to host and expose Web APIs:
   • Within ASP.NET applications inside IIS, IIS Express, VS Web Server
   • Self hosted within any custom app (console, Windows Service, etc)


• Same programming model


• Maximum flexibility




                                                                 Nivo 300
DEMO

Web API hosting




                  Nivo 300
Asynchronous Support
• Why use async on a server?
  • Enables more efficient use of threads and server resources

• How does it work?
   • Your controller class yields to ASP.NET when calling a remote
     resource, allowing the server thread to be re-used while you wait
   • When remote call returns, controller is re-scheduled to complete
   • Reduces # of threads running -> increases scalability

• Use of async on server is not exposed to browsers/clients
   • http://myserver.com/products -> same URL can be implemented
     in ASP.NET using either a synchronous or async controller




                                                                 Nivo 300
Async in MVC Today
public class Products : AsyncController {

    public void IndexAsync() {

        WebClient wc1 = new WebClient();

        AsyncManager.OutstandingOperations.Increment();

        wc1.DownloadStringCompleted += (sender, e) => {
            AsyncManager.Parameters[“result"] = e.Result;
            AsyncManager.OutstandingOperations.Decrement();
        };

        wc1.DownloadStringAsync(new Uri("http://www.bing.com/"));
    }

    public ActionResult IndexCompleted(string result) {
        return View();
    }
}



                                                              Nivo 300
Async in MVC with VS 11
public class Products : Controller {

    public async Task<ActionResult> IndexAsync() {

        WebClient web = new WebClient();

      string result = await
web.DownloadStringAsync("www.bing.com/");

        return View();
    }
}




                                                     Nivo 300
VPRAŠANJA?
Po zaključku predavanja, prosimo, izpolnite vprašalnik.
Vprašalniki bodo poslani na vaš e-naslov, dostopni pa bodo tudi
preko profila na spletnem portalu konference www.ntk.si.


Najlepša hvala!




                                                                  Nivo 300

Mais conteúdo relacionado

Mais procurados

Building solutions with the SharePoint Framework - introduction
Building solutions with the SharePoint Framework - introductionBuilding solutions with the SharePoint Framework - introduction
Building solutions with the SharePoint Framework - introductionWaldek Mastykarz
 
Introduction to ASP.NET 5
Introduction to ASP.NET 5Introduction to ASP.NET 5
Introduction to ASP.NET 5mbaric
 
Migration from ASP.NET MVC to ASP.NET Core
Migration from ASP.NET MVC to ASP.NET CoreMigration from ASP.NET MVC to ASP.NET Core
Migration from ASP.NET MVC to ASP.NET CoreMiroslav Popovic
 
AppFx.ServiceBus - Simple Messaging with Windows Azure Service Bus
AppFx.ServiceBus - Simple Messaging with Windows Azure Service BusAppFx.ServiceBus - Simple Messaging with Windows Azure Service Bus
AppFx.ServiceBus - Simple Messaging with Windows Azure Service BusMichael Stephenson
 
Building your first android app using xamarin (Gill Cleeren)
Building your first android app using xamarin (Gill Cleeren)Building your first android app using xamarin (Gill Cleeren)
Building your first android app using xamarin (Gill Cleeren)Visug
 
Going Serverless with Azure Functions
Going Serverless with Azure FunctionsGoing Serverless with Azure Functions
Going Serverless with Azure FunctionsChristos Matskas
 
Serverless with Azure Functions
Serverless with Azure FunctionsServerless with Azure Functions
Serverless with Azure FunctionsAndreas Willich
 
Web application I have always dreamt of (Lviv)
Web application I have always dreamt of (Lviv)Web application I have always dreamt of (Lviv)
Web application I have always dreamt of (Lviv)Victor_Cr
 

Mais procurados (19)

Building solutions with the SharePoint Framework - introduction
Building solutions with the SharePoint Framework - introductionBuilding solutions with the SharePoint Framework - introduction
Building solutions with the SharePoint Framework - introduction
 
A Gentle Introduction to Blazor
A Gentle Introduction to BlazorA Gentle Introduction to Blazor
A Gentle Introduction to Blazor
 
Introduction to ASP.NET 5
Introduction to ASP.NET 5Introduction to ASP.NET 5
Introduction to ASP.NET 5
 
Mini-Training Owin Katana
Mini-Training Owin KatanaMini-Training Owin Katana
Mini-Training Owin Katana
 
Migration from ASP.NET MVC to ASP.NET Core
Migration from ASP.NET MVC to ASP.NET CoreMigration from ASP.NET MVC to ASP.NET Core
Migration from ASP.NET MVC to ASP.NET Core
 
AppFx.ServiceBus - Simple Messaging with Windows Azure Service Bus
AppFx.ServiceBus - Simple Messaging with Windows Azure Service BusAppFx.ServiceBus - Simple Messaging with Windows Azure Service Bus
AppFx.ServiceBus - Simple Messaging with Windows Azure Service Bus
 
Node ts1
Node ts1Node ts1
Node ts1
 
ASP.NET 5 Overview
ASP.NET 5 OverviewASP.NET 5 Overview
ASP.NET 5 Overview
 
Express yourself
Express yourselfExpress yourself
Express yourself
 
Codegen2021 blazor mobile
Codegen2021 blazor mobileCodegen2021 blazor mobile
Codegen2021 blazor mobile
 
Single Page Application
Single Page ApplicationSingle Page Application
Single Page Application
 
Building your first android app using xamarin (Gill Cleeren)
Building your first android app using xamarin (Gill Cleeren)Building your first android app using xamarin (Gill Cleeren)
Building your first android app using xamarin (Gill Cleeren)
 
Going Serverless with Azure Functions
Going Serverless with Azure FunctionsGoing Serverless with Azure Functions
Going Serverless with Azure Functions
 
ASP.NET 5
ASP.NET 5ASP.NET 5
ASP.NET 5
 
Serverless with Azure Functions
Serverless with Azure FunctionsServerless with Azure Functions
Serverless with Azure Functions
 
Web application I have always dreamt of (Lviv)
Web application I have always dreamt of (Lviv)Web application I have always dreamt of (Lviv)
Web application I have always dreamt of (Lviv)
 
Web development using asp.net
Web development using asp.netWeb development using asp.net
Web development using asp.net
 
Single page App
Single page AppSingle page App
Single page App
 
Asp.net
Asp.netAsp.net
Asp.net
 

Semelhante a ASP.NET MVC 4

ASP .Net Core SPA Templates
ASP .Net Core SPA TemplatesASP .Net Core SPA Templates
ASP .Net Core SPA TemplatesEamonn Boyle
 
Introduction to Microsoft Workloads on AWS - AWS Online Tech Talks
Introduction to Microsoft Workloads on AWS - AWS Online Tech TalksIntroduction to Microsoft Workloads on AWS - AWS Online Tech Talks
Introduction to Microsoft Workloads on AWS - AWS Online Tech TalksAmazon Web Services
 
SharePoint Saturday The Conference DC - How the client object model saved the...
SharePoint Saturday The Conference DC - How the client object model saved the...SharePoint Saturday The Conference DC - How the client object model saved the...
SharePoint Saturday The Conference DC - How the client object model saved the...Liam Cleary [MVP]
 
WIN204-Simplifying Microsoft Architectures with AWS Services
WIN204-Simplifying Microsoft Architectures with AWS ServicesWIN204-Simplifying Microsoft Architectures with AWS Services
WIN204-Simplifying Microsoft Architectures with AWS ServicesAmazon Web Services
 
Running Business-Critical Applications on the AWS Cloud
Running Business-Critical Applications on the AWS CloudRunning Business-Critical Applications on the AWS Cloud
Running Business-Critical Applications on the AWS CloudAmazon Web Services
 
Introduction Asp.Net MVC5 |MVC5 Tutorial for Beginners & Advanced | Dot Net T...
Introduction Asp.Net MVC5 |MVC5 Tutorial for Beginners & Advanced | Dot Net T...Introduction Asp.Net MVC5 |MVC5 Tutorial for Beginners & Advanced | Dot Net T...
Introduction Asp.Net MVC5 |MVC5 Tutorial for Beginners & Advanced | Dot Net T...Dot Net Tricks
 
Simplifying Microsoft Architectures with AWS - CMP214 - re:Invent 2017
Simplifying Microsoft Architectures with AWS - CMP214 - re:Invent 2017Simplifying Microsoft Architectures with AWS - CMP214 - re:Invent 2017
Simplifying Microsoft Architectures with AWS - CMP214 - re:Invent 2017Amazon Web Services
 
AWS as platform for scalable applications
AWS as platform for scalable applicationsAWS as platform for scalable applications
AWS as platform for scalable applicationsRoman Gomolko
 
2011 NetUG HH: ASP.NET MVC & HTML 5
2011 NetUG HH: ASP.NET MVC & HTML 52011 NetUG HH: ASP.NET MVC & HTML 5
2011 NetUG HH: ASP.NET MVC & HTML 5Daniel Fisher
 
Migrate an Existing Application to Microsoft Azure
Migrate an Existing Application to Microsoft AzureMigrate an Existing Application to Microsoft Azure
Migrate an Existing Application to Microsoft AzureChris Dufour
 
Building High-Performance applications with .NET 5 and Vue JS 3
Building High-Performance applications with .NET 5 and Vue JS 3Building High-Performance applications with .NET 5 and Vue JS 3
Building High-Performance applications with .NET 5 and Vue JS 3Alexandre Malavasi
 
MVC 1.0 als alternative Webtechnologie
MVC 1.0 als alternative WebtechnologieMVC 1.0 als alternative Webtechnologie
MVC 1.0 als alternative WebtechnologieOPEN KNOWLEDGE GmbH
 
Devops continuousintegration and deployment onaws puttingmoneybackintoyourmis...
Devops continuousintegration and deployment onaws puttingmoneybackintoyourmis...Devops continuousintegration and deployment onaws puttingmoneybackintoyourmis...
Devops continuousintegration and deployment onaws puttingmoneybackintoyourmis...Emerson Eduardo Rodrigues Von Staffen
 
DevOps, Continuous Integration and Deployment on AWS: Putting Money Back into...
DevOps, Continuous Integration and Deployment on AWS: Putting Money Back into...DevOps, Continuous Integration and Deployment on AWS: Putting Money Back into...
DevOps, Continuous Integration and Deployment on AWS: Putting Money Back into...Amazon Web Services
 
ASP.NET Presentation
ASP.NET PresentationASP.NET Presentation
ASP.NET PresentationRasel Khan
 
Cnam azure ze cloud resource manager
Cnam azure ze cloud  resource managerCnam azure ze cloud  resource manager
Cnam azure ze cloud resource managerAymeric Weinbach
 
WinOps Conf 2016 - Ed Wilson - Configuration Management with Azure DSC
WinOps Conf 2016 - Ed Wilson - Configuration Management with Azure DSCWinOps Conf 2016 - Ed Wilson - Configuration Management with Azure DSC
WinOps Conf 2016 - Ed Wilson - Configuration Management with Azure DSCWinOps Conf
 

Semelhante a ASP.NET MVC 4 (20)

ASP .Net Core SPA Templates
ASP .Net Core SPA TemplatesASP .Net Core SPA Templates
ASP .Net Core SPA Templates
 
Introduction to Microsoft Workloads on AWS - AWS Online Tech Talks
Introduction to Microsoft Workloads on AWS - AWS Online Tech TalksIntroduction to Microsoft Workloads on AWS - AWS Online Tech Talks
Introduction to Microsoft Workloads on AWS - AWS Online Tech Talks
 
SharePoint Saturday The Conference DC - How the client object model saved the...
SharePoint Saturday The Conference DC - How the client object model saved the...SharePoint Saturday The Conference DC - How the client object model saved the...
SharePoint Saturday The Conference DC - How the client object model saved the...
 
App fabric introduction
App fabric introductionApp fabric introduction
App fabric introduction
 
WIN204-Simplifying Microsoft Architectures with AWS Services
WIN204-Simplifying Microsoft Architectures with AWS ServicesWIN204-Simplifying Microsoft Architectures with AWS Services
WIN204-Simplifying Microsoft Architectures with AWS Services
 
Running Business-Critical Applications on the AWS Cloud
Running Business-Critical Applications on the AWS CloudRunning Business-Critical Applications on the AWS Cloud
Running Business-Critical Applications on the AWS Cloud
 
Introduction Asp.Net MVC5 |MVC5 Tutorial for Beginners & Advanced | Dot Net T...
Introduction Asp.Net MVC5 |MVC5 Tutorial for Beginners & Advanced | Dot Net T...Introduction Asp.Net MVC5 |MVC5 Tutorial for Beginners & Advanced | Dot Net T...
Introduction Asp.Net MVC5 |MVC5 Tutorial for Beginners & Advanced | Dot Net T...
 
Aspnet mvc
Aspnet mvcAspnet mvc
Aspnet mvc
 
Simplifying Microsoft Architectures with AWS - CMP214 - re:Invent 2017
Simplifying Microsoft Architectures with AWS - CMP214 - re:Invent 2017Simplifying Microsoft Architectures with AWS - CMP214 - re:Invent 2017
Simplifying Microsoft Architectures with AWS - CMP214 - re:Invent 2017
 
AWS as platform for scalable applications
AWS as platform for scalable applicationsAWS as platform for scalable applications
AWS as platform for scalable applications
 
2011 NetUG HH: ASP.NET MVC & HTML 5
2011 NetUG HH: ASP.NET MVC & HTML 52011 NetUG HH: ASP.NET MVC & HTML 5
2011 NetUG HH: ASP.NET MVC & HTML 5
 
Migrate an Existing Application to Microsoft Azure
Migrate an Existing Application to Microsoft AzureMigrate an Existing Application to Microsoft Azure
Migrate an Existing Application to Microsoft Azure
 
Building High-Performance applications with .NET 5 and Vue JS 3
Building High-Performance applications with .NET 5 and Vue JS 3Building High-Performance applications with .NET 5 and Vue JS 3
Building High-Performance applications with .NET 5 and Vue JS 3
 
MVC 1.0 als alternative Webtechnologie
MVC 1.0 als alternative WebtechnologieMVC 1.0 als alternative Webtechnologie
MVC 1.0 als alternative Webtechnologie
 
Devops continuousintegration and deployment onaws puttingmoneybackintoyourmis...
Devops continuousintegration and deployment onaws puttingmoneybackintoyourmis...Devops continuousintegration and deployment onaws puttingmoneybackintoyourmis...
Devops continuousintegration and deployment onaws puttingmoneybackintoyourmis...
 
DevOps, Continuous Integration and Deployment on AWS: Putting Money Back into...
DevOps, Continuous Integration and Deployment on AWS: Putting Money Back into...DevOps, Continuous Integration and Deployment on AWS: Putting Money Back into...
DevOps, Continuous Integration and Deployment on AWS: Putting Money Back into...
 
ASP.NET Presentation
ASP.NET PresentationASP.NET Presentation
ASP.NET Presentation
 
Cnam azure ze cloud resource manager
Cnam azure ze cloud  resource managerCnam azure ze cloud  resource manager
Cnam azure ze cloud resource manager
 
Mvc fundamental
Mvc fundamentalMvc fundamental
Mvc fundamental
 
WinOps Conf 2016 - Ed Wilson - Configuration Management with Azure DSC
WinOps Conf 2016 - Ed Wilson - Configuration Management with Azure DSCWinOps Conf 2016 - Ed Wilson - Configuration Management with Azure DSC
WinOps Conf 2016 - Ed Wilson - Configuration Management with Azure DSC
 

Mais de Danijel Malik

What's new in Visual Studio 2013 & TFS 2013
What's new in Visual Studio 2013 & TFS 2013What's new in Visual Studio 2013 & TFS 2013
What's new in Visual Studio 2013 & TFS 2013Danijel Malik
 
Advanced Debugging with Visual Studio 2013 Preview
Advanced Debugging with Visual Studio 2013 PreviewAdvanced Debugging with Visual Studio 2013 Preview
Advanced Debugging with Visual Studio 2013 PreviewDanijel Malik
 
Team Foundation Service
Team Foundation ServiceTeam Foundation Service
Team Foundation ServiceDanijel Malik
 
Visual Studio 2012 ALM
Visual Studio 2012 ALMVisual Studio 2012 ALM
Visual Studio 2012 ALMDanijel Malik
 
Visual Studio 11 & TFS 11 in Practice
Visual Studio 11 & TFS 11 in PracticeVisual Studio 11 & TFS 11 in Practice
Visual Studio 11 & TFS 11 in PracticeDanijel Malik
 
Visual Studio LightSwitch
Visual Studio LightSwitchVisual Studio LightSwitch
Visual Studio LightSwitchDanijel Malik
 
In the Clouds with Windows Phone 7
In the Clouds with Windows Phone 7In the Clouds with Windows Phone 7
In the Clouds with Windows Phone 7Danijel Malik
 
Napredna diagnostika v Windows Azure
Napredna diagnostika v Windows AzureNapredna diagnostika v Windows Azure
Napredna diagnostika v Windows AzureDanijel Malik
 
Pregled novosti v Visual Studio 2012 ALM
Pregled novosti v Visual Studio 2012 ALMPregled novosti v Visual Studio 2012 ALM
Pregled novosti v Visual Studio 2012 ALMDanijel Malik
 

Mais de Danijel Malik (11)

What's new in Visual Studio 2013 & TFS 2013
What's new in Visual Studio 2013 & TFS 2013What's new in Visual Studio 2013 & TFS 2013
What's new in Visual Studio 2013 & TFS 2013
 
Advanced Debugging with Visual Studio 2013 Preview
Advanced Debugging with Visual Studio 2013 PreviewAdvanced Debugging with Visual Studio 2013 Preview
Advanced Debugging with Visual Studio 2013 Preview
 
Testing Bootcamp
Testing BootcampTesting Bootcamp
Testing Bootcamp
 
Team Foundation Service
Team Foundation ServiceTeam Foundation Service
Team Foundation Service
 
Visual Studio 2012 ALM
Visual Studio 2012 ALMVisual Studio 2012 ALM
Visual Studio 2012 ALM
 
Visual Studio 11 & TFS 11 in Practice
Visual Studio 11 & TFS 11 in PracticeVisual Studio 11 & TFS 11 in Practice
Visual Studio 11 & TFS 11 in Practice
 
Visual Studio LightSwitch
Visual Studio LightSwitchVisual Studio LightSwitch
Visual Studio LightSwitch
 
In the Clouds with Windows Phone 7
In the Clouds with Windows Phone 7In the Clouds with Windows Phone 7
In the Clouds with Windows Phone 7
 
Napredna diagnostika v Windows Azure
Napredna diagnostika v Windows AzureNapredna diagnostika v Windows Azure
Napredna diagnostika v Windows Azure
 
Pregled novosti v Visual Studio 2012 ALM
Pregled novosti v Visual Studio 2012 ALMPregled novosti v Visual Studio 2012 ALM
Pregled novosti v Visual Studio 2012 ALM
 
Code Reusability
Code ReusabilityCode Reusability
Code Reusability
 

ASP.NET MVC 4

  • 1. ASP.NET MVC 4 Danijel Malik Artifis Danijel Malik s.p. Twitter: @DanijelMalik Email: danijel@artifis.si Nivo 300
  • 2. About me • Developer • Developer • Developer • Tech Lead • Developer • Architect…who you? No you’re not!!! • Developer • Developer • Tech Lead…come on…stop it already…you’re a developer!!!! Nivo 300
  • 3. New features • Bundling/Minification Support • Database Migrations • Mobile Web • Web APIs • Real Time Communication • Asynchronous Support • Works with VS 2010/.NET 4 and built-into VS11 Nivo 300
  • 4. Bundling and Minification • Improve loading performance of JavaScript and CSS • Reduce # and size of HTTP requests • Works by convention (no configuration required) • Fully customizable and extensible Nivo 300
  • 6. Razor improvements • Razor now resolves ~/ within all standard HTML attributes • From this: <script src=”@Url.Content(“~/Scripts/Site.js”)”></script> • To this: <script src=”~/Scripts/Site.js”></script> @ Nivo 300
  • 7. Conditional Attribute Enhancements • From this: @{ string myClass = null; if (someCondition) { myClass = ”shinyFancy”; } } <div @{if (myClass != null) { <text>class=”@myClass”</text> } }>Content</div> Nivo 300
  • 8. Conditional Attribute Enhancements • To this: @{ string myClass = null; if (someCondition) { myClass = ”shinyFancy”; } } • Will automatically omit attribute name if value is null <div class=”@myClass”>Content</div> Nivo 300
  • 9. Database Migrations • EF Code First provides a convention-over-configuration based development approach • Migrations == code-oriented approach to evolve DB schema • Code focused • Developer friendly • Can be used to generate SQL change scripts to pass off to a DBA Nivo 300
  • 11. Mobile Web • Adaptive Rendering • Use of CSS Media Queries within default project templates • Display Modes • Selectively adapt views based on devices • Mobile Optimized Templates • jQuery Mobile Nivo 300
  • 12. Mobile Web Development – A Spectrum Adaptive Display Mobile Rendering Modes Template Nivo 300
  • 13. DEMO Mobile Web Nivo 300
  • 14. DEMO Web API Nivo 300
  • 15. Web API Hosting • Multiple ways to host and expose Web APIs: • Within ASP.NET applications inside IIS, IIS Express, VS Web Server • Self hosted within any custom app (console, Windows Service, etc) • Same programming model • Maximum flexibility Nivo 300
  • 17. Asynchronous Support • Why use async on a server? • Enables more efficient use of threads and server resources • How does it work? • Your controller class yields to ASP.NET when calling a remote resource, allowing the server thread to be re-used while you wait • When remote call returns, controller is re-scheduled to complete • Reduces # of threads running -> increases scalability • Use of async on server is not exposed to browsers/clients • http://myserver.com/products -> same URL can be implemented in ASP.NET using either a synchronous or async controller Nivo 300
  • 18. Async in MVC Today public class Products : AsyncController { public void IndexAsync() { WebClient wc1 = new WebClient(); AsyncManager.OutstandingOperations.Increment(); wc1.DownloadStringCompleted += (sender, e) => { AsyncManager.Parameters[“result"] = e.Result; AsyncManager.OutstandingOperations.Decrement(); }; wc1.DownloadStringAsync(new Uri("http://www.bing.com/")); } public ActionResult IndexCompleted(string result) { return View(); } } Nivo 300
  • 19. Async in MVC with VS 11 public class Products : Controller { public async Task<ActionResult> IndexAsync() { WebClient web = new WebClient(); string result = await web.DownloadStringAsync("www.bing.com/"); return View(); } } Nivo 300
  • 20. VPRAŠANJA? Po zaključku predavanja, prosimo, izpolnite vprašalnik. Vprašalniki bodo poslani na vaš e-naslov, dostopni pa bodo tudi preko profila na spletnem portalu konference www.ntk.si. Najlepša hvala! Nivo 300