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);
 }
Ejemplo n.º 3
0
 public DependencyResolver(Config config)
 {
     Config            = config;
     LazyLoadingHelper = new LazyLoadingHelper();
     Log = new Log();
     QueryParameterFactory        = new QueryParameterConfigFactory(this);
     DataMapperResolverFactory    = new DataMapperTaskConfigFactory(this);
     DataMapperFactory            = new DataMapperConfigFactory(this);
     ConfigurationResolverFactory = new ConfigurationResolverConfigFactory(this);
     ObjectConstructionFactory    = new ObjectConstructionTaskConfigFactory(this);
     ObjectSavingFactory          = new ObjectSavingTaskConfigFactory(this);
     ConfigurationMapFactory      = new ConfigurationMapConfigFactory(this);
     GlassHtmlFactory             = new GlassHtmlFactory(this);
     LazyLoadingHelper            = new LazyLoadingHelper();
     CacheFactory = new CacheFactory(() => new NetMemoryCacheManager());
 }