Ejemplo n.º 1
0
        public void RegisterSingleInstance(Type type, object instance)
        {
            CheckAlreadyAdded(type);

            var resolver = new SingleInstanceResolver(instance);

            _resolvers.Add(type, resolver);
        }
Ejemplo n.º 2
0
        public void RegisterSingleInstance(Type type, Type impl)
        {
            CheckAlreadyAdded(type);

            var resolver = new SingleInstanceResolver(this, impl);

            _resolvers.Add(type, resolver);
        }