public AbstractionsCollection(IImplementationTypesCollection implementationTypesCollection,
                               IImplementationCache implementationCache)
 {
     this.implementationTypesCollection = implementationTypesCollection;
     this.implementationCache           = implementationCache;
     valueFactory = ValueFactory;
 }
示例#2
0
 public AbstractionConfigurator(IAbstractionConfigurationCollection abstractionConfigurationCollection,
                                IClassWrapperCreator classWrapperCreator, IImplementationConfigurationCache implementationConfigurationCache,
                                IImplementationCache implementationCache)
 {
     worker = new AbstractionConfigurator(typeof(T), abstractionConfigurationCollection, classWrapperCreator,
                                          implementationConfigurationCache, implementationCache);
 }
示例#3
0
 public Abstraction(Type[] implementationTypes, IImplementationCache implementationCache)
 {
     implementations = new IImplementation[implementationTypes.Length];
     for (int i = 0; i < implementationTypes.Length; i++)
     {
         implementations[i] = implementationCache.GetOrCreate(implementationTypes[i]);
     }
 }
 public AbstractionConfigurator(Type abstractionType,
                                IAbstractionConfigurationCollection abstractionConfigurationCollection,
                                IClassWrapperCreator classWrapperCreator, IImplementationConfigurationCache implementationConfigurationCache,
                                IImplementationCache implementationCache)
 {
     this.abstractionType = abstractionType;
     this.abstractionConfigurationCollection = abstractionConfigurationCollection;
     this.classWrapperCreator = classWrapperCreator;
     this.implementationConfigurationCache = implementationConfigurationCache;
     this.implementationCache = implementationCache;
 }