Ejemplo n.º 1
0
 public DependencyResolver(Config config)
 {
     Config = config;
     CacheManager = () => new HttpCache();
     QueryParameterFactory = new QueryParameterConfigFactory();
     DataMapperResolverFactory = new DataMapperTaskConfigFactory();
     DataMapperFactory = new DataMapperConfigFactory(QueryParameterFactory);
     ConfigurationResolverFactory = new ConfigurationResolverConfigFactory();
     ObjectConstructionFactory = new ObjectConstructionTaskConfigFactory(this);
     ObjectSavingFactory = new ObjectSavingTaskConfigFactory();
     ConfigurationMapFactory = new ConfigurationMapConfigFactory();
 }
 public DependencyResolver(Config config)
 {
     Config = config;
     Log = new Log();
     CacheManager = () => new NetMemoryCacheManager();
     QueryParameterFactory = new QueryParameterConfigFactory();
     DataMapperResolverFactory = new DataMapperTaskConfigFactory();
     DataMapperFactory = new DataMapperConfigFactory(QueryParameterFactory);
     ConfigurationResolverFactory = new ConfigurationResolverConfigFactory();
     ObjectConstructionFactory = new ObjectConstructionTaskConfigFactory(this);
     ObjectSavingFactory = new ObjectSavingTaskConfigFactory();
     ConfigurationMapFactory = new ConfigurationMapConfigFactory();
     GlassHtmlFactory = new GlassHtmlFactory();
     ItemVersionHandler = new ItemVersionHandler(config);
 }