C# System.ObjectDisposedException: Cannot access a disposed object, A common cause of thiserror is disposing a context that was resolved from dependency injection and then later trying touse...

项目中使用了依赖注入,这个错误在a56爆大奖在线娱乐项目中的原因:在async修饰的异步方法中,调用执行数据库操作的方法时,没有使用await关键字调用,因为没有等待该调用,a56爆大奖在线娱乐在调用完成之前将继续执行该方法。因此,已处理了注入的依赖项。
posted @ 2023-04-10 11:28  峨嵋峰  阅读(407)  评论(0编辑  收藏  举报