我注意到在所有 Kephas 示例中,当调用异步方法时,最后会调用PreserveThreadContext()
. 这是做什么的?
一些例子:
var result = await dataContext.Query<Document>()
.ToListAsync()
.PreserveThreadContext();
我知道ConfigureAwait(false)
,这是类似的东西吗?