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

            var resolver = new SingleInstanceResolver(instance);

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

            var resolver = new SingleInstanceResolver(this, impl);

            _resolvers.Add(type, resolver);
        }