Ejemplo n.º 1
0
 public AbstractionConfigurator(IAbstractionConfigurationCollection abstractionConfigurationCollection,
                                IClassWrapperCreator classWrapperCreator, IImplementationConfigurationCache implementationConfigurationCache,
                                IImplementationCache implementationCache)
 {
     worker = new AbstractionConfigurator(typeof(T), abstractionConfigurationCollection, classWrapperCreator,
                                          implementationConfigurationCache, implementationCache);
 }
Ejemplo n.º 2
0
 public AutoAbstractionConfigurationFactory(ITypesHelper typesHelper,
                                            IAbstractionsCollection abstractionsCollection,
                                            IImplementationConfigurationCache implConfigCache)
 {
     this.typesHelper            = typesHelper;
     this.abstractionsCollection = abstractionsCollection;
     this.implConfigCache        = implConfigCache;
 }
Ejemplo n.º 3
0
 public ContainerConfigurator(IAbstractionConfigurationCollection abstractionConfigurationCollection,
                              IClassWrapperCreator classWrapperCreator,
                              IImplementationConfigurationCache implementationConfigurationCache, IImplementationCache implementationCache)
 {
     this.abstractionConfigurationCollection = abstractionConfigurationCollection;
     this.classWrapperCreator = classWrapperCreator;
     this.implementationConfigurationCache = implementationConfigurationCache;
     this.implementationCache = implementationCache;
 }
Ejemplo n.º 4
0
        public AutoAbstractionConfiguration(Type abstractionType,
                                            IAbstractionsCollection abstractionsCollection,
                                            IImplementationConfigurationCache implementationConfigurationCache)
        {
            var abstraction = abstractionsCollection.Get(abstractionType);

            IImplementation[] implementations = abstraction.GetImplementations();
            implementationConfigurations = new IImplementationConfiguration[implementations.Length];
            for (int i = 0; i < implementations.Length; i++)
            {
                implementationConfigurations[i] = implementationConfigurationCache.GetOrCreate(implementations[i]);
            }
        }