コード例 #1
0
        public IOC.ILifetimeScope BeginLifetimeScope(Action <IOC.IRegistrator> registations)
        {
            var childScope = _lifetimeScope.BeginLifetimeScope(
                builder =>
            {
                registations(new RegistratorImpl(builder));
            });
            var result = new LifetimeScopeImpl(childScope);

            return(result);
        }
コード例 #2
0
        public IOC.ILifetimeScope BeginLifetimeScope(object tag)
        {
            var result = new LifetimeScopeImpl(_lifetimeScope.BeginLifetimeScope(tag));

            return(result);
        }