예제 #1
0
        /// <summary>
        /// See IContainer for details
        /// </summary>
        /// <param name="type"></param>
        /// <param name="instance"></param>
        public void AddService(Type type, object instance)
        {
            var item = new ContainerItem(type, instance, null);

            itemList.Add(item);
        }
예제 #2
0
        /// <summary>
        /// See IContainer for details
        /// </summary>
        /// <param name="type"></param>
        /// <param name="instance"></param>
        /// <param name="id"></param>
        public void Add(Type type, object instance, string id)
        {
            var item = new ContainerItem(type, instance, id);

            itemList.Add(item);
        }