Ejemplo n.º 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);
        }
Ejemplo n.º 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);
        }