예제 #1
0
        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));
        }