Exemplo n.º 1
0
        public DiContainer(DiContainer parentContainer)
        {
            singletonProviderCreator = new SingletonProviderCreator(this);
            if (parentContainer != null)
            {
                parentContainer.FlushBindings();
                for (int i = 0; i < parentContainer.childBindings.Count; i++)
                {
                    currentBindings.Enqueue(parentContainer.childBindings[i]);
                }

                FlushBindings();
            }
        }
Exemplo n.º 2
0
 public DiContainer()
 {
     singletonProviderCreator = new SingletonProviderCreator(this);
 }