[CSHARP-1051] Ensure ConfigureAwait is used internally on awaited async calls Created: 26/Aug/14  Updated: 02/Apr/15  Resolved: 29/Sep/14

Status: Closed
Project: C# Driver
Component/s: Connectivity
Affects Version/s: None
Fix Version/s: 2.0

Type: Improvement Priority: Major - P3
Reporter: Craig Wilson Assignee: Robert Stam
Resolution: Done Votes: 0
Labels: None
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified

Issue Links:
Depends
is depended on by CSHARP-138 Add asynchronous APIs Closed

 Description   

When doing awaits, within a library, I think we should be using ConfigureAwait(false). This is an efficiency optimisation that is not yet widely known. A few quick links;
http://channel9.msdn.com/Series/Three-Essential-Tips-for-Async/Async-library-methods-should-consider-using-Task-ConfigureAwait-false-
http://rehansaeed.co.uk/configureawait-task-parallel-library/



 Comments   
Comment by Githook User [ 29/Sep/14 ]

Author:

{u'username': u'rstam', u'name': u'rstam', u'email': u'robert@robertstam.org'}

Message: CSHARP-1051: Added ConfigureAwait(false) to all uses of await in the library projects (but not the test projects).
Branch: master
https://github.com/mongodb/mongo-csharp-driver/commit/9a3358dde2285180a75fbd9b3c3d92d086679896

Generated at Wed Feb 07 21:38:32 UTC 2024 using Jira 9.7.1#970001-sha1:2222b88b221c4928ef0de3161136cc90c8356a66.