protected void TryInjectDependenciesAndConstruct(object instance,
                                                         DICollection instanceInjectors)
        {
            if (instanceInjectors != null)
            {
                foreach (IDependencyInjector injector in instanceInjectors)
                {
                    injector.InjectTo(instance);
                }
            }

            IConstructAware constructAware = instance as IConstructAware;

            if (constructAware != null)
            {
                constructAware.Construct();
            }
        }
 public DICollectionBuilder()
 {
     collection = new DICollection();
 }
 public InstanceDependencyMapping(object instance,
                                  DICollection dependencies)
 {
     this.instance     = instance;
     this.dependencies = dependencies;
 }