public static ILifetimeScope CreateLifetimeScope(Autofac.ILifetimeScope scope)
        {
            var iocScope = new IocLifetimeScope(scope);

            CallContextUtility.SetData <ILifetimeScope>(iocScope);
            return(iocScope);
        }
示例#2
0
        public static ILifetimeScope BeginLifetimeScope()
        {
            var scope = IocManager.Instance.Container.BeginLifetimeScope();

            return(IocLifetimeScope.CreateLifetimeScope(scope));
        }