public ConfigurationService(IConfigurationRepository configurationRepository, ConfigurationOptions options,
                             IConfigurationCache configurationCache)
 {
     _configurationRepository = configurationRepository;
     _options            = options;
     _configurationCache = configurationCache;
 }
Example #2
0
 /// <summary>
 /// Default class constructor.  Made private so that class instances cannot
 /// be created directly.
 /// </summary>
 private ConfigurationManager()
 {
     _Cache = new SynchronizedConfigurationCache();
 }
 public virtual IMultiSessionFactoryConfigurer WithCachedConfiguration(IConfigurationCache configurationCache, params Assembly[] dependentAssemblies)
 {
     _sessionFactoryConfiguration.WithCachedConfiguration(configurationCache, dependentAssemblies);
     return(this);
 }
 public virtual IMultiSessionFactoryConfigurer WithCachedConfiguration(IConfigurationCache configurationCache, params string[] dependentFilePaths)
 {
     _sessionFactoryConfiguration.WithCachedConfiguration(configurationCache, dependentFilePaths);
     return(this);
 }
 public virtual void WithCachedConfiguration(IConfigurationCache configurationCache, params Assembly[] dependentAssemblies)
 {
     ConfigurationCache       = configurationCache;
     CacheDependencyFilePaths = DependentFilePaths.FromAssemblies(dependentAssemblies);
 }
 public virtual void WithCachedConfiguration(IConfigurationCache configurationCache, params string[] dependentFilePaths)
 {
     ConfigurationCache       = configurationCache;
     CacheDependencyFilePaths = dependentFilePaths;
 }
Example #7
0
 public QueryHandler(ApplicationDbContext context, IMapper mapper, IConfigurationCache configurationCache)
 {
     _context            = context;
     _mapper             = mapper;
     _configurationCache = configurationCache;
 }
		public IPartialConfiguration Cached(IConfigurationCache configurationCache, params Assembly[] dependentAssemblies)
		{
			_currentSessionFactoryRegistration.ConfigurationCache = configurationCache;
			_currentSessionFactoryRegistration.CacheDependencyFilePaths = DependentFilePaths.FromAssemblies(dependentAssemblies);
			return this;
		}
		public IPartialConfiguration Cached(IConfigurationCache configurationCache, params string[] dependentFilePaths)
		{
			_currentSessionFactoryRegistration.ConfigurationCache = configurationCache;
			_currentSessionFactoryRegistration.CacheDependencyFilePaths = dependentFilePaths;
			return this;
		}
Example #10
0
 /// <summary>
 /// Initializes a new instance of the <see cref="T:Sitecore.Social.Configuration.ConfigurationFactory" /> class.
 /// </summary>
 /// <param name="configurationCache">
 /// The configuration cache.
 /// </param>
 public ConfigurationFactory(IConfigurationCache configurationCache)
 {
     ConfigurationCache = configurationCache;
 }