Showing archive results for 2012

Apr 13, 2012
Post comments count3
Post likes count8

Should I expose synchronous wrappers for asynchronous methods?

Stephen Toub - MSFT

In a previous post Should I expose asynchronous wrappers for synchronous methods?, I discussed “async over sync,” the notion of using synchronous functionality asynchronously and the benefits that doing so may or may not yield. The other direction of “sync over async” is also interesting to explore. Avoid Exposing Synchrono...

.NET Parallel Programming
Apr 12, 2012
Post comments count12
Post likes count3

Async/Await FAQ

Stephen Toub - MSFT

From time to time, I receive questions from developers which highlight either a need for more information about the new “async” and “await” keywords in C# and Visual Basic. I’ve been cataloguing these questions, and I thought I’d take this opportunity to share my answers to them.Conceptual Overviewhttps://msdn.co...

.NET Parallel Programming
Apr 12, 2012
Post comments count0
Post likes count0

Are deadlocks still possible with await?

Stephen Toub - MSFT

Developers familiar with parallel programming are also familiar with a wide range of potential problems that can occur when practicing the art.  One of the most well-known issues is “deadlock,” where two or more operations are waiting on each other to complete in a manner such that none of them will be able to complete.I’ve r...

.NET Parallel Programming
Apr 6, 2012
Post comments count0
Post likes count0

Overriding Stream Asynchrony

Stephen Toub - MSFT

In .NET 4.5 Beta, the Stream class provides multiple virtual methods related to reading and writing: As a developer deriving from Stream, it’s helpful to understand what the base implementations do and when you can and should override them.Read, Write, FlushThe Read, Write, and Flush methods are the core synchronous mechanisms...

.NET Parallel Programming
Apr 6, 2012
Post comments count0
Post likes count0

April 2012 Update for Visual Studio 11 Beta

Web Development Tools Microsoft

April 2012 Update for Visual Studio 11 Beta is available.    For Visual Studio 11 Beta Ultimate, You can install it through Tools->Extension Manager:   For Visual Studio 11 Express Beta for Web, you can download it directly and install: April 2012 Update for Microsoft Visual Studio 11 Beta.  Due to a known issue, i...

ASP.NET
Apr 4, 2012
Post comments count0
Post likes count0

NuGet 1.7 Released

The NuGet Team

We're happy to announce that we released NuGet 1.7 today. This release includes several new features as well as over 75 bug fixes. Details are in the NuGet 1.7 Release Notes.

NuGetRelease announcement
Apr 3, 2012
Post comments count0
Post likes count2

Async in 4.5: Worth the Await

Brandon Bray

Developers often ask for guidance on how to write responsive user interfaces. Reading most books about the .NET Framework over the past ten years, you’ll see coverage of the asynchronous programming model which requires a lot of careful attention while coding. That’s why the async features in the latest versions of C# and Visual Basic are tremendou...

.NET
Mar 25, 2012
Post comments count0
Post likes count2

Do I need to dispose of Tasks?

Stephen Toub - MSFT

I get this question a lot: “Task implements IDisposable and exposes a Dispose method.  Does that mean I should dispose of all of my tasks?” SummaryHere’s my short answer to this question: “No.  Don’t bother disposing of your tasks.”Here’s my medium-length answer: “No.  Don&rsquo...

.NET Parallel Programming
Mar 24, 2012
Post comments count0
Post likes count3

Should I expose asynchronous wrappers for synchronous methods?

Stephen Toub - MSFT

Lately I’ve received several questions along the lines of the following, which I typically summarize as “async over sync”: In my library, I have a method “public T Foo();”.  I’m considering exposing an asynchronous method that would simply wrap the synchronous one, e.g. “public Task<T> FooAsync...

.NET Parallel Programming
Mar 22, 2012
Post comments count0
Post likes count0

Visual Studio 11 Express Beta for Web new features

Web Development Tools Microsoft

In earlier blog, we mentioned that Visual Studio 11 Express Beta for Web is available to download. Besides the common features seen in Visual Studio 2010 Web Express, it provides some new functionalities.   TFS support VS11 Express Beta for Web added TFS support which including all of the TFS client features, such as source control, team ex...

ASP.NET