I have method in which I want to execute 3 async methods. 2 of them (Method1 and Method3) uses dbContext to query data.
await Task.WhenAll(Method1(dbContext), Method2(), Method3(dbContext)).ConfigureAwait(false);;
await seedSession.SaveChangesAsync().ConfigureAwait(false);
With .ConfigureAwait(false);
I get error
"A second operation started on this context before a previous asynchronous operation completed"
When it was without .ConfigureAwait(false);
- everything worked fine.
Is problem in Method1 and Method3, which uses same context to make queries in same time?
Method1 just update data in db... Method2 - update data in blobs, Method3 - update data in azure table with sync to db... so Method1 and Method3 have "access" to db