/// <summary>
        /// Инициализирует новый экземпляр класса <see cref="AppConfigConfigurator"/>.
        /// </summary>
        /// <param name="endpointsConfig">
        /// The endpoints config.
        /// </param>
        /// <param name="dependencyResolver">
        /// The dependency resolver.
        /// </param>
        internal AppConfigConfigurator(EndpointsSection endpointsConfig, IDependencyResolver dependencyResolver)
        {
            this.endpointsConfig    = endpointsConfig;
            this.dependencyResolver = dependencyResolver;

            var configurators = new List <IConfigurator>();

            configurators.Add(new CachingConfigurator(new CacheConfigProvider(this.dependencyResolver, this.endpointsConfig)));

            this.childConfigurators = configurators;
        }
 /// <summary>
 /// Инициализирует новый экземпляр класса <see cref="AppConfigConfigurator"/>.
 /// </summary>
 /// <param name="endpointsConfig">
 /// The endpoints config.
 /// </param>
 /// <param name="dependencyResolverFunc">
 /// The dependency resolver func.
 /// </param>
 internal AppConfigConfigurator(EndpointsSection endpointsConfig, DependencyResolverFunc dependencyResolverFunc)
     : this(endpointsConfig, new LambdaDependencyResolver(dependencyResolverFunc))
 {
 }
 /// <summary>
 /// Инициализирует новый экземпляр класса <see cref="AppConfigConfigurator"/>.
 /// </summary>
 /// <param name="endpointsConfig">
 /// The endpoints config.
 /// </param>
 /// <param name="dependencyResolver">
 /// The dependency resolver.
 /// </param>
 internal AppConfigConfigurator(EndpointsSection endpointsConfig, IDependencyResolver dependencyResolver)
 {
     this.endpointsConfig    = endpointsConfig;
     this.dependencyResolver = dependencyResolver;
 }
Exemple #4
0
 public CacheConfigProvider(IDependencyResolver dependencyResolver, EndpointsSection endpointsConfig)
 {
     this.dependencyResolver = dependencyResolver;
     this.endpointsConfig    = endpointsConfig;
 }
 /// <summary>
 /// Инициализирует новый экземпляр класса <see cref="AppConfigConfigurator"/>.
 /// </summary>
 /// <param name="endpointsConfig">
 /// The endpoints config.
 /// </param>
 /// <param name="dependencyResolverFunc">
 /// The dependency resolver func.
 /// </param>
 internal AppConfigConfigurator(EndpointsSection endpointsConfig, DependencyResolverFunc dependencyResolverFunc)
     : this(endpointsConfig, new LambdaDependencyResolver(dependencyResolverFunc))
 {
 }
 /// <summary>
 /// Инициализирует новый экземпляр класса <see cref="AppConfigConfigurator"/>.
 /// </summary>
 /// <param name="endpointsConfig">
 /// The endpoints config.
 /// </param>
 /// <param name="dependencyResolver">
 /// The dependency resolver.
 /// </param>
 internal AppConfigConfigurator(EndpointsSection endpointsConfig, IDependencyResolver dependencyResolver)
 {
     this.endpointsConfig = endpointsConfig;
     this.dependencyResolver = dependencyResolver;
 }