有人有使用InstancePerApiRequest for DbContext与autofac进行sharprepository集成的示例吗?在web集成下,总是从DependencyResolver.Current或ILifetimeScopeProvider.RequestLifetime请求依赖项,而不是从容器本身请求依赖项。-> Autofac.Core.DependencyResolutionException:在调用'AccountRepo
在web集成下,总是从DependencyResolver.Current或ILifetimeScopeProvider.RequestLifetime请求依赖项,而不是从容器本身请求依赖项。在web集成下,总是从Autofac.Core.Resolving.InstanceLookup..ctor(IComponentRegistration注册、IResolveOperation上下文、,而不是从容器本身请求依赖。, Service service, IEnum