public static ILifetimeScope CreateLifetimeScope(Autofac.ILifetimeScope scope) { var iocScope = new IocLifetimeScope(scope); CallContextUtility.SetData <ILifetimeScope>(iocScope); return(iocScope); }
public static ILifetimeScope BeginLifetimeScope() { var scope = IocManager.Instance.Container.BeginLifetimeScope(); return(IocLifetimeScope.CreateLifetimeScope(scope)); }