I noticed in all Kephas examples that, when invoking async methods, at the end there is a call to PreserveThreadContext()
. What does this do?
Some example:
var result = await dataContext.Query<Document>()
.ToListAsync()
.PreserveThreadContext();
I know about ConfigureAwait(false)
, is this something similar?