qq362220083

Results 3 comments of qq362220083

**Auto-registration:** ![Auto-registration](https://user-images.githubusercontent.com/7076606/144874544-26d4762c-fc1d-44e6-a58c-3d815280de00.png) ------ **Manual registration:** ![Manual registration](https://user-images.githubusercontent.com/7076606/144874611-4a1ea4c5-c6f7-4111-b10d-43593d6c985e.png)

你好 @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识别为多线程调用。