I have some code that runs in ASP.NET, and uses async await.
The code relies on the HttpContext.Current to store logical-thread context data, such as the current user ID, and the data access adapter and outer transaction used during the logical thread.
I have setup LLBLGen entity Auditing using a custom Auditor class, which is used to clear a cache upon changes to entities.
During an awaited call to SaveEntityAsync, an Auditor is called as expected.
However, the code in the auditor has lost the HttpContext; HttpContext.Current == null.
This breaks the access to the data for the logical thread.
I traced this down to the use of ConfigureAwait(false) in LLBLGen.
Would you consider a static configuration setting in LLLBLGen to specify the true/false value for ConfigureAwait? If I can specify 'true', I'm happy.
Thanks,
Ries