DotNetShoutout - Stories tagged with Async
5
Shouts

Asynchronous programming in C# 5

published 433 days, 1 hour, 1 minute ago posted by traskjdtraskjd 438 days, 48 minutes ago
Monday, March 19, 2012 7:49:15 AM GMT Wednesday, March 14, 2012 8:02:28 AM GMT
One of the more radical design decisions in the forthcoming Windows Runtime is that no API may, even potentially, take more than 50 milliseconds to complete. Operations that could take longer than that will instead have a 'kick off this operation' API that returns immediately without waiting for the result of the operation. Discover how this will change how .NET developers write code and what C# 5 includes to take advantage of this new focus on Async. (more)
category: How To | clicked: 86 | comment | | source: www.mindscapehq.com
tags: Async, CSharp, await, Mindscape
3
Shouts

async / await, some reasoning - Bnaya Eshet

published 489 days, 8 hours, 37 minutes ago posted by bnayabnaya 492 days, 23 hours, 33 minutes ago
Monday, January 23, 2012 12:13:07 AM GMT Thursday, January 19, 2012 9:17:07 AM GMT
async / await some reasoningasync / await some reasoning this post will try to make some reasoning about the .NET 4.5 / C#5 await keyword. I will begin a quiz. how long will it take to the following method to produce the 42 value?Code SnippetasyncTask (more)
category: Architecture | clicked: 16 | comment | | source: blogs.microsoft.co.il
tags: TPL, Parallel, Async, .NET 4.5, Task, await, C#5
2
Shouts

Using async / await - Bnaya Eshet

published 496 days, 20 hours, 56 minutes ago posted by bnayabnaya 497 days, 10 hours ago
Sunday, January 15, 2012 11:54:38 AM GMT Saturday, January 14, 2012 10:50:22 PM GMT
Using async / awaitUsing async / await this post will discuss parallel disposal. whenever we want to dispose a parallel execution upon completion we can't use the convenient using keyword. for example, the following code may be dispose the command before completion:Very bad Code Snippetusing (var conn = newSqlConnection(CONN_STR))using (var cmd = newSqlCommand("Select * from Employee", conn)) {    conn.Open();    cmd.BeginExecuteReader(ar =>        {int affected = cmd.EndExecuteNonQuery(ar);        ... (more)
category: Architecture | clicked: 14 | comment | | source: blogs.microsoft.co.il
tags: TPL, Parallel, Async, Using, Task, await
3
Shouts

async \ await and Exception Handling - Bnaya Eshet

published 499 days, 1 hour, 27 minutes ago posted by bnayabnaya 500 days, 2 hours, 35 minutes ago
Friday, January 13, 2012 7:23:16 AM GMT Thursday, January 12, 2012 6:15:13 AM GMT
async \ await and Exception Handlingasync \ await and Exception Handling this post will discuss how async / await is handling exceptions. as we mention in previous post, about the async / await concept, await is all about continuation. before .NET 4.5 parallel execution exceptions has to be handle in separate of the synchronic handling. for example: handling ThreadPool execution:Code Snippetvoid Foo(){try    {Console.WriteLine("Synchronic");ThreadPool.QueueUserWorkItem(state =>            {try   ... (more)
category: Architecture | clicked: 10 | comment | | source: blogs.microsoft.co.il
tags: TPL, continue, Async, .NET 4.5, continuation, exception, await, C#5
4
Shouts

the concept of async \ await - Bnaya Eshet

published 509 days, 13 hours, 13 minutes ago posted by bnayabnaya 513 days, 17 hours, 6 minutes ago
Monday, January 02, 2012 7:37:30 PM GMT Thursday, December 29, 2011 3:44:39 PM GMT
the concept of async \ awaitthe concept of async \ await in this post I will survey the new .NET 4.5 / C# 5 concept of async / await. I will focus on how to understand what is really happens behind the new async / await syntax.What's it all about? the new async / await syntax is using the C# syntactic compiler to generate async operation from code that is looking very much like a synchronous code. but before we start we should discus the new C# 5  syntax. the syntax include 2 keywords:async - whic... (more)
category: Architecture | clicked: 12 | 1 comment | | source: blogs.microsoft.co.il
tags: Async, .NET 4.5, continuation, await, C#5
3
Shouts

What is the cost of async/await? - Bnaya Eshet

posted by bnayabnaya 527 days, 12 hours, 25 minutes ago
Thursday, December 15, 2011 8:25:36 PM GMT
What is the cost of async/await?What is the cost of async/await? .NET 4.5 (C# 5) had brought the new async/await syntax. I will cover async/await syntax in more details in future post, but in the meanwhile in case that you are not yet familiar with that syntax, what's  you should have to know is that the syntactic compiler transform that syntax (and the lines that follow the await keyword) into IL, the generated IL is following the concept of the TPL ContinueWith. the syntactic compiler is actually ge... (more)
category: Architecture | clicked: 10 | comment | | source: blogs.microsoft.co.il
tags: Async, await
3
Shouts

WPF 4.5 – Part 7 : Accessing collections on non-UI Threads | Yet Another Blog About...

published 606 days, 17 hours, 14 minutes ago posted by jmix90jmix90 609 days, 11 hours, 48 minutes ago
Tuesday, September 27, 2011 3:36:42 PM GMT Saturday, September 24, 2011 9:02:13 PM GMT
Here is the seventh (OMG !) post on the WPF 4.5 new features. Collections are a part of every application and their management is maybe the first thing you learn to deal with in WPF. To begin, you put everything on the main(the UI one) thread and it works just fine. After a few time, you realize that it freezes the application UI and that the users usually don’t like it. Then you put the collections creation/feeding on another Thread to free the UI’s one and you realize that it is not possible because :... (more)
category: How To | clicked: 29 | 2 comments | | source: www.jonathanantoine.com
tags: announcment, Asynchonous programming, Async, How-To, WPF, wpf 4.5
2
Shouts

Async Support in Telerik JustCode

published 645 days, 53 minutes ago posted by KodefuGuruKodefuGuru 645 days, 15 hours, 16 minutes ago
Saturday, August 20, 2011 7:57:43 AM GMT Friday, August 19, 2011 5:34:38 PM GMT
The latest internal build of JustCode has been released with support for the asynchronous language features in the Microsoft Visual Studio Async CTP. Improvements to the semantic analyzer detect errors on usage of the async method modifier and await operators in C# and Visual Basic. This feature will be available for the general public in JustCode Q2 SP1... (more)
category: How To | clicked: 7 | comment | | source: blogs.telerik.com
tags: JustCode, Telerik, Async
2
Shouts

Going Asynchronous

published 645 days, 53 minutes ago posted by KodefuGuruKodefuGuru 645 days, 18 hours, 24 minutes ago
Saturday, August 20, 2011 7:57:43 AM GMT Friday, August 19, 2011 2:26:34 PM GMT
In A Brief Introduction to Fundamental OOP, I built a small twitter application. It does the job well, but it has a very undesirable quality. When you click the search button, the application momentarily freezes as it waits for the Twitter service to respond. The application would feel a lot smoother if it allowed the user to continue using the application while the request is processed... (more)
category: How To | clicked: 9 | 1 comment | | source: www.kodefuguru.com
tags: Callback, Async, Asynchronous
4
Shouts

Using Reverse Geocoding to Find an Address - Gil Fink on .Net

published 699 days, 13 hours, 7 minutes ago posted by gilfgilf 703 days, 3 hours, 6 minutes ago
Sunday, June 26, 2011 7:43:52 PM GMT Thursday, June 23, 2011 5:44:34 AM GMT
I had a request from a colleague of mine to help him with a geocoding problem. The colleague needed to find an address by a given latitude and longitude which were supplied by a smartphone consumer. The example in this post will show you how you can use Google geocoding API in order to achieve that using C#. (more)
category: How To | clicked: 22 | 1 comment | | source: blogs.microsoft.co.il
tags: Google, Async, C#, geocoder
3
Shouts

Writing non-blocking user-interfaces in F#

published 711 days, 20 hours, 33 minutes ago posted by http://tomaspetricek.pip.verisignlabs.com/http://tomaspetricek.pip.verisignlabs.com/ 712 days, 18 hours ago
Tuesday, June 14, 2011 12:17:32 PM GMT Monday, June 13, 2011 2:50:06 PM GMT
F# asynchronous workflows are mainly used for non-blocking I/O and concurrency, but they provide nice abstraction for writing user interface interactions. This article shows an Silverlight example and explains how F# makes it easy to write code that avoids blocking the user-interface when performing CPU-intensive processing. (more)
category: Metro | clicked: 12 | comment | | source: tomasp.net
tags: Silverlight, Async, User Interface, Asynchronous programming, FSharp, F#
4
Shouts

Playing with Reflection and Async

published 719 days, 13 hours, 32 minutes ago posted by abhi2434abhi2434 721 days, 14 hours, 33 minutes ago
Monday, June 06, 2011 7:18:03 PM GMT Saturday, June 04, 2011 6:17:13 PM GMT
Hi Guys, Task Asynchronous Pattern as you already know from my article, is one of the major change of next generation .NET applications. As this is already discussed in detail in the article, I will not repeat the same again here in this post. If you don't know what is it, please go ahead and read the article. In this post, I will try to use reflection to invoke our own async method.  Trying Reflection with async So to start, let us take a look at one of the simplest Async method. staticvoid Main(... (more)
category: Architecture | clicked: 27 | comment | | source: www.abhisheksur.com
tags: Async, C#, Reflection
2
Shouts

Async support for Silverlight and WP7

published 756 days, 17 hours, 38 minutes ago posted by abhi2434abhi2434 759 days, 12 hours, 17 minutes ago
Saturday, April 30, 2011 3:12:02 PM GMT Wednesday, April 27, 2011 8:33:44 PM GMT
Async support in C# language brings the new life to the modern application development to bring forth the same technique of writing your code and bring asynchrony easily. The main focus of async ctp is to ornament the language in such a way so that the developer could seamlessly create applications that brings asynchrony yet not dealing with its complexity. Hence using the new technique, asynchrony could easily achieved in a program without refactoring the whole program with lots of callbacks and method... (more)
category: Metro | clicked: 0 | comment | | source: www.abhisheksur.com
tags: Silverlight, Windows Phone 7, Async, C# 5.0, XAML
6
Shouts

Telerik Data Virtualization, WCF RIA Services and Visual Studio Async CTP

published 760 days, 10 hours, 47 minutes ago posted by KodefuGuruKodefuGuru 764 days, 2 hours, 6 minutes ago
Tuesday, April 26, 2011 10:03:13 PM GMT Saturday, April 23, 2011 6:44:50 AM GMT
Last week (MIX 2011), Microsoft released the second Visual Studio Async CTP and I’ve decided to give it a try and implement one of my blog posts related to our Silverlight Data Virtualization with WCF RIA Services. To do this I’ve made two extension methods for DomainContext: LoadAsync (more)
category: Metro | clicked: 4 | 1 comment | | source: blogs.telerik.com
tags: Telerik, Async, WCF RIA Services
4
Shouts

Download details: Visual Studio Async CTP (SP1 Refresh)

published 772 days, 1 hour, 4 minutes ago posted by gpeipmangpeipman 773 days, 8 hours, 57 minutes ago
Friday, April 15, 2011 7:46:27 AM GMT Wednesday, April 13, 2011 11:53:01 PM GMT
New version of Visual Studio Async CTP that works with SP1 of VS2010. (more)
category: How To | clicked: 0 | comment | | source: www.microsoft.com
tags: Async, VS2010
9
Shouts

ASP.NET WF4 / WCF and Async Calls - Ron Jacobs

published 798 days, 5 hours, 23 minutes ago posted by KluggerKlugger 799 days, 18 hours, 13 minutes ago
Sunday, March 20, 2011 3:27:49 AM GMT Friday, March 18, 2011 2:37:45 PM GMT
How should you use WF4 and WCF with ASP.NET? For this post I’ve created a really simple workflow and WCF service that delay for a specific amount of time and then return a value. Then I created an ASP.NET page that I can use to invoke the workflow and WCF service to test their behavior The Workflow Definition First off – let’s get one thing straight. When you create a workflow, you are creating a workflow definition. The workflow definition still has to be validated, expressions compiled etc. and t... (more)
category: Web Dev | clicked: 5 | comment | | source: blogs.msdn.com
tags: WF4, Async, WCF, ASP.NET
4
Shouts

C# Async

published 858 days, 20 hours, 31 minutes ago posted by JudoJudo 859 days, 15 hours, 34 minutes ago
Tuesday, January 18, 2011 12:19:33 PM GMT Monday, January 17, 2011 5:16:17 PM GMT
Async is a new keyword added in C# 5.0 which is a key part of the asynchronous programming model. In C#, Async is modifier which is added to a method which denotes that the method contains control flow which involves waiting for asynchronous operations and will therefore be rewritten by the compiler to ensure that the asynchronous operations can resume this method at the correct point. The focus of async methods is to ensure that you stay on the current thread as much as possible. Async methods therefo... (more)
category: How To | clicked: 2 | comment | | source: www.csharphelp.com
tags: Async, C#, C# 5.0
6
Shouts

Asynchrony in C# 5 Part Six: Whither async? - Eric Lippert's Blog

published 924 days, 12 hours, 42 minutes ago posted by StevesSteves 926 days, 12 hours, 30 minutes ago
Saturday, November 13, 2010 8:08:52 PM GMT Thursday, November 11, 2010 8:20:40 PM GMT
A number of people have asked me what motivates the design decision to require any method that contains an "await" expression to be prefixed with the contextual keyword "async". Like any design decision there are pros and cons here that have to be evaluated in the context of many different competing and incompossible principles. There's not going to be a slam-dunk solution here that meets every criterion or delights everyone. We're always looking for an attainable compromise, not for unattainable perfec... (more)
category: How To | clicked: 0 | comment | | source: blogs.msdn.com
tags: Async
3
Shouts

Async, Await and the UI problem

posted by mikeukmikeuk 936 days, 22 hours, 37 minutes ago
Monday, November 01, 2010 10:13:22 AM GMT
The new async/await asynchronous programming facilities in .NET solve one of its long standing problems - how to write and an elegant application that uses the UI correctly. (more)
category: How To | clicked: 3 | comment | | source: www.i-programmer.info
tags: Async, UI, await, Threading
6
Shouts

Visual Studio Async CTP for the rest of us… - Michael Crump

published 937 days, 9 hours, 39 minutes ago posted by MikeMike 938 days, 10 hours, 13 minutes ago
Sunday, October 31, 2010 11:11:02 PM GMT Saturday, October 30, 2010 10:37:27 PM GMT
Today at PDC 2010, they announced Asynchronous functions in C# and VB.NET. So what exactly does that mean? I’ll give you the definition first: Asynchronous operations are methods and other function members that may have most of their execution take place after they return. In .NET the recommended pattern for asynchronous operations is for them to return a taskwhich represents the ongoing operation and allows waiting for its eventual outcome. You completely understand right? Me neither! I have been rea... (more)
category: How To | clicked: 0 | comment | | source: michaelcrump.net
tags: Async, Visual Studio, CTP
Previous 1 2 Next