WHO WILL BENEFIT FROM THIS TALK TOPICS WHAT YOU’LL LEAVE WITH ASP.NET developers, including Web Forms & MVC History of async programming in.NET How async.

Slides:



Advertisements
Similar presentations
Asynchronous I/O in .NET
Advertisements

Building and Using Web Services with ASP.NET Rob Howard Program Manager.NET Framework Team Microsoft Corp.
Chap 4 Multithreaded Programming. Thread A thread is a basic unit of CPU utilization It comprises a thread ID, a program counter, a register set and a.
Cole Durdan.  What is asynchronous programming?  Previous patterns  Task Based Async Programming .NET 4.5 Keywords  What happens in an async. method?
Joe Hummel, PhD Microsoft MVP Visual C++ Technical Staff: Pluralsight, LLC Adjunct Professor: U. of Illinois, Chicago and Loyola University Chicago
Lessons learned from developing a Windows 8 Metro application in C# Frode Nilsen Nilsen Labs Ticki.
{ async patterns } - or - using the asynchronous library in the.Net 4.5 Framework for more than keeping your UI responsive.
Async Programming WITH ASYNC TASK
ASP.NET (Active Server Page) SNU OOPSLA Lab. October 2005.
XML Web Services in Visual Studio ®.NET NameTitleCompany.
Chapter 4: Threads. 4.2 Silberschatz, Galvin and Gagne ©2005 Operating System Concepts – 7 th edition, Jan 23, 2005 Chapter 4: Threads Overview Multithreading.
WHO WILL BENEFIT FROM THIS TALK TOPICS WHAT YOU’LL LEAVE WITH Web app developers who are already familiar with Windows Azure with scaling needs. Asynchronous.
Managed Code Generics Language Integrated Query Dynamic + Language Parity C# VB 11.0 Windows Runtime + Asynchrony C# VB 7.0 C# VB.
Developer Day Was ist neu in.NET 4.5? Ken Casada Technical Evangelist, Microsoft Switzerland
Joe Hummel, PhD Dept of Mathematics and Computer Science Lake Forest College Lecture 8: WebForms — Web-based.
Agenda What is AJAX? What is jQuery? Demonstration/Tutorial Resources Q&A.
Joe Hummel, PhD Dept of Mathematics and Computer Science Lake Forest College
ASP.NET  ASP.NET is a web development platform, which provides a programming model, a comprehensive software infrastructure and various services required.
Sofia, Bulgaria | 9-10 October Asynchronous Programming for ASP.NET 2.0 Developers Julie Lerman The Data Farm Julie Lerman The Data Farm.
Joe Hummel, PhD Technical Staff: Pluralsight Adjunct Professor: UIC, LUC
CIS 375—Web App Dev II Microsoft’s.NET. 2 Introduction to.NET Steve Ballmer (January 2000): Steve Ballmer "Delivering an Internet-based platform of Next.
DEV301. // Synchronous TResult Foo(...); // Asynchronous Programming Model (APM) IAsyncResult BeginFoo(..., AsyncCallback callback, object state);
Consuming REST Services from C# SoftUni Team Technical Trainers Software University
Parallel Programming: Responsiveness vs. Performance Joe Hummel, PhD Microsoft MVP Visual C++ Technical Staff: Pluralsight, LLC Professor: U. of Illinois,
Joe Hummel, PhD Microsoft MVP Visual C++ Technical Staff: Pluralsight, LLC Professor: U. of Illinois, Chicago stuff:
Future of VB and C# Lucian Wischik VB Language PM Microsoft.
Introducing ASP.NET 2.0. Internet Technologies WWW Architecture Web Server Client Server Request Response Network HTTP TCP/IP PC/Mac/Unix + Browser (IE,
C# AND ASP.NET What will I do in this course?. MAJOR TOPICS Learn to program in the C# language with the Visual Studio IDE (Interactive Development Environment)
Reactive pattern matching for F# Part of “Variations in F#” research project Tomáš Petříček, Charles University in Prague
Getting Started with ASP.NET MVC BRIJ BHUSHAN MISHRA.
Asynchronous Web Services Writing Asynchronous Web Services SoftUni Team Technical Trainers Software University
IAsyncResult ar = BeginSomething(…); // Do other work, checking ar.IsCompleted int result = EndSomething(ar);
Getting started with ASP.NET MVC Dhananjay
ASP.NET (Active Server Page) SNU OOPSLA Lab. October 2005.
TAP into async programming
Other news? async and await Anonymous types (var, dynamic) Tuples Object instantiation Extension methods UCN Teknologi/act2learn1FEN 2014.
CIS 375—Web App Dev II ASP.NET 1 Getting Started.
TOPICS WHAT YOU’LL LEAVE WITH WHO WILL BENEFIT FROM THIS TALK.NET library developers : with knowledge of async/await in C# / VB interested in low-level.
What’s New in.NET 4.5 Layla Driscoll Senior Program Manager Microsoft Corporation.
Building Custom Controls with ASP.NET and the Microsoft ®.NET Framework Rames Gantanant Microsoft Regional Director, Thailand
Patterns of Parallel Programming with.NET 4 Stephen Toub Principal Architect Parallel Computing Platform Microsoft Corporation
CIS NET Applications1 Chapter 7 – Asynchronous Calls.
Agenda UCMA 3.0 Highlights Management PowerShell cmdlets to create and manage UCMA trusted applications and endpoints. Autoprovisioning Application.
TOPICS WHAT YOU’LL LEAVE WITH WHO WILL BENEFIT FROM THIS TALK.NET developers: familiar with parallel programming support in Visual Studio 2010 and.NET.
Introduction to ASP.NET development. Background ASP released in 1996 ASP supported for a minimum 10 years from Windows 8 release ASP.Net 1.0 released.
Nivo 300 ASP.NET MVC 4 Danijel Malik Artifis Danijel Malik s.p.
C# Present and Future Marita Paletsou Software Engineer.
C# 5.0 Alex Davies 22 nd December What we will cover C# 5.0,.NET 4.5, Visual Studio 11 Caller Info Attributes Upgrade from synchronous to asynchronous.
ASP.NET Core* Shahed Chowdhuri Sr. Technical WakeUpAndCode.com A Quick Overview of ASP.NET Core RC2 * aka ASP.NET 5 before.
Hartelijk welkom VB Event 26 september 2012 ‘Visual Studio 2012 voor de VB.NETWEB developer’ Alex Thissen – Achmea.
Async Made Simple in Windows 8, with C# and Visual Basic Alex Turner Program Manager VB/C# Compilers Microsoft Corporation DEV332.
THE FUTURE OF C#: GOOD THINGS COME TO THOSE WHO ‘AWAIT’ Joseph Albahari SESSION CODE: DEV411 (c) 2011 Microsoft. All rights reserved.
Windows Developer Day Fall Creators Update Chris Cortes
TechEd /6/2018 6:15 AM © 2013 Microsoft Corporation. All rights reserved. Microsoft, Windows, and other product names are or may be registered trademarks.
ASP MVP Web applications and Razor
Async or Parallel? No they aren’t the same thing!
Web Applications Security What are web Applications?
Building real-time web apps with WebSockets using IIS, ASP.NET and WCF
Staying Afloat in the .NET Async Ocean
12 Asynchronous Programming
Tips and tricks for developing Metro style apps using XAML
Learn. Imagine. Build. .NET Conf
A Quick Overview of ASP.NET Core 1.0
Asynchronous Programming
Build /2/2019 © 2012 Microsoft Corporation. All rights reserved. Microsoft, Windows, and other product names are or may be registered trademarks.
ASP.NET Core* MVC and Web API Shahed Chowdhuri
Hold up, wait a minute, let me put some async in it
Building Web Applications with Microsoft ASP
Erik Porter Program Manager ASP.NET Microsoft Corporation
03 | Async Programming & Networking Intro
Presentation transcript:

WHO WILL BENEFIT FROM THIS TALK TOPICS WHAT YOU’LL LEAVE WITH ASP.NET developers, including Web Forms & MVC History of async programming in.NET How async works in ASP.NET Using async in ASP.NET apps How to use async programming in ASP.NET to increase scalability, improve page response time and implement long running requests The Task Parallel Library (TPL) and async/await support in in C# and.NET 4.5 makes programming async much easier than traditional APM ASP.NET 4.5, including the core framework, Web Forms and MVC, has great support for working with the TPL and async/await

A brief history of async programming in.NET

Asynchronous Programming Model (APM) Evented Asynchronous Programming (EAP) Task-based Asynchronous Programming (TAP)

//.NET 1 model file.BeginRead(buffer, 0, maxLength, asyncResult => { int numBytesRead = file.EndRead(asyncResult); // Now do something with "buffer“ }, null); Asynchronous Programming Model (APM)

//.NET 2 model webClient.DownloadStringCompleted += (sender, args) => { string html = args.Result; // Now do something with "html" }; webClient.DownloadStringAsync(new Uri("

Task htmlTask = webClient.DownloadStringTaskAsync(url); htmlTask.ContinueWith(task => { string html = task.Result; // Async, C# 4 }); string html = htmlTask.Result; // Sync (block until done) string html = await htmlTask; // Async, C# 5

public async Task MyMethod() { string myParam = "some value"; var data = await FetchSomeData(myParam); return View(data); } 2 1 public Task MyMethod() { string myParam = "some value"; return FetchSomeData(myParam).ContinueWith(task => { var data = task.Result; return View(data); }); } 2 1 Before compilation After compilation (conceptual)

How async requests work in ASP.NET

Traditional Web request handling “thread-per-request” a.k.a. “post office” Thread pool Requests Busy

Asynchronous Web request handling a.k.a. “restaurant” Requests Thread pool

Using async for benefit in ASP.NET apps. Easy as 1, 3, 2

TOOL-810T: Async made simple in Windows 8, with C# and Visual Basic RELATED SESSIONS DOCUMENTATION & ARTICLES