Ejemplo n.º 1
0
        public IDependencyScope BeginScope()
        {
            if (_container == null)
            {
                _container = ObjectFactory.Container;
            }

            if (_scope == null)
            {
                _scope = new StructureMapScope(_container);
            }

            // check the conainer if is null
            if (_scope.Container == null)
            {
                _scope.Container = _container;
            }

            return(_scope);
        }
Ejemplo n.º 2
0
 public StructureMapDependencyResolver(IContainer container)
     : base(container)
 {
     _container = container;
     _scope     = new StructureMapScope(_container);
 }