Beispiel #1
0
        public void RegisterSingleInstance(Type type, object instance)
        {
            CheckAlreadyAdded(type);

            var resolver = new SingleInstanceResolver(instance);

            _resolvers.Add(type, resolver);
        }
Beispiel #2
0
        public void RegisterSingleInstance(Type type, Type impl)
        {
            CheckAlreadyAdded(type);

            var resolver = new SingleInstanceResolver(this, impl);

            _resolvers.Add(type, resolver);
        }