#lifetimes

Instances cannot be resolved and nested lifetimes cannot be created from this LifetimeScope as it has already been disposed.

2019-07-2411:09:15.231+08:00LISA.Common.Utilities.LogUtil-System.ObjectDisposedException:InstancescannotberesolvedandnestedlifetimescannotbecreatedfromthisLifet...

要引用这几个才有GetOwinContext与GetAutofacLifetimeScope

usingOwin;usingAutofac;usingAutofac.Integration.Owin;usingSystem.Web;varowin=this.Request.GetOwinContext();varscop=owin.GetAutofacLifetimeScope();scop.ResolveOp...