Async in C# 5.0

Unleash the Power of Async

Paperback Engels 2012 1e druk 9781449337162
€ 18,47
Levertijd ± 16 werkdagen

Samenvatting

If you're writing one of several applications that call for asynchronous programming, this concise hands-on guide shows you how the async feature in C# 5.0 can make the process much simpler. Along with a clear introduction to asynchronous programming, you get an in-depth look at how the async feature works and why you might want to use it in your application.

Written for experienced C# programmers-yet approachable for beginners-this book is packed with code examples that you can extend for your own projects.

- Write your own asynchronous code, and learn how async saves you from this messy chore
- Discover new performance possibilities in ASP.NET web server code
- Explore how async and WinRT work together in Windows 8 applications
- Learn the importance of the await keyword in async methods
- Understand which .NET thread is running your code-and at what points in the program
- Use the Task-based Asynchronous Pattern (TAP) to write asynchronous APIs in .NET
- Take advantage of parallel computing in modern machines
- Measure async code performance by comparing it with alternatives

Specificaties

ISBN13:9781449337162
Taal:Engels
Bindwijze:paperback
Aantal pagina's:92
Uitgever:O'Reilly
Druk:1
Verschijningsdatum:2-10-2012
Hoofdrubriek:IT-management / ICT

Lezersrecensies

Wees de eerste die een lezersrecensie schrijft!

Inhoudsopgave

Preface

1. Introduction
-Asynchronous Programming
-What's So Great About Asynchronous Code?
-What Is Async?
-What Async Does
-Async Doesn't Solve Everything

2. Why Programs Need to Be Asynchronous
-Desktop User Interface Applications
-Web Application Server Code
-Silverlight, Windows Phone, and Windows 8
-Parallel Code
-An Example

3. Writing Asynchronous Code Manually
-Some Asynchronous Patterns Used in .NET
-The Simplest Asynchronous Pattern
-An Introduction to Task
-The Problem with Manual Asynchrony
-Converting the Example to Use Manual Asynchronous Code

4. Writing Async Methods
-Converting the Favicon Example to Async
-Task and await
-Async Method Return Types
-Async, Method Signatures, and Interfaces
-The return Statement in Async Methods
-Async Methods Are Contagious
-Async Anonymous Delegates and Lambdas

5. What await Actually Does
-Hibernating and Resuming a Method
-The State of the Method
-Context
-Where await Can't Be Used
-Exception Capture
-Async Methods Are Synchronous Until Needed

6. The Task-Based Asynchronous Pattern
-What the TAP Specifies
-Using Task for Compute-Intensive Operations
-Creating a Puppet Task
-Interacting with Old Asynchronous Patterns
-Cold and Hot Tasks
-Up-Front Work

7. Utilities for Async Code
-Delaying for a Period of Time
-Waiting for a Collection of Tasks
-Waiting for Any One Task from a Collection
-Creating Your Own Combinators
-Cancelling Asynchronous Operations
-Returning Progress During an Asynchronous Operation

8. Which Thread Runs My Code?
-Before the First await
-During the Asynchronous Operation
-SynchronizationContext in Detail
Afgekapt op 60 regels

Managementboek Top 100

€ 18,47
Levertijd ongeveer 16 werkdagen

Rubrieken

Producten

    Auteurs

      Trefwoorden

        Artikelen

          Async in C# 5.0