qq362220083
qq362220083
**Auto-registration:**  ------ **Manual registration:** 
:worried:Please help me.
你好 @JeffreySu ,在使用盛派微信库的时候还发现很多同步方法与ef core下的dbcontext冲突,在高并发的情况下提示异常“A second operation started on this context before a previous operation completed. Any instance members are not guaranteed to be thread safe.”。 使用的dbcontext是注入的,Lifetime是ServiceLifetime.Scoped。 经多次排查初步怀疑是盛派微信库中的异步转同步方法大量使用ConfigureAwait,导致异步执行完成上下文切换到了非原始线程,从而被ef core识别为多线程调用。