예제 #1
0
        /// <summary>
        /// Configures component by passing configuration parameters.
        /// </summary>
        /// <param name="config">configuration parameters to be set.</param>
        public override void Configure(ConfigParams config)
        {
            base.Configure(config);

            _connectionResolver.Configure(config);
            _credentialResolver.Configure(config);
        }
예제 #2
0
        /// <summary>
        /// Configures component by passing configuration parameters.
        /// </summary>
        /// <param name="config">configuration parameters to be set.</param>
        public virtual void Configure(ConfigParams config)
        {
            _logger.Configure(config);
            _connectionResolver.Configure(config, true);
            _credentialResolver.Configure(config, true);

            Name = NameResolver.Resolve(config, Name);
            Name = config.GetAsStringWithDefault("queue", Name);
        }
예제 #3
0
        // Make the method virtual
        public new void Configure(ConfigParams config)
        {
            base.Configure(config);

            _connectionResolver.Configure(config);
            _credentialResolver.Configure(config);

            _connectTimeout = config.GetAsIntegerWithDefault("options.connect_timeout", _connectTimeout);
            _retryTimeout   = config.GetAsIntegerWithDefault("options.timeout", _retryTimeout);
            _retries        = config.GetAsIntegerWithDefault("options.retries", _retries);
        }
        public virtual void Configure(ConfigParams config)
        {
            config = config.SetDefaults(_defaultConfig);

            _connectionResolver.Configure(config, true);
            _credentialResolver.Configure(config, true);

            _collectionName = config.GetAsStringWithDefault("collection", _collectionName);

            _options = _options.Override(config.GetSection("options"));
        }
 /// <summary>
 /// Configures component by passing configuration parameters.
 /// </summary>
 /// <param name="config">configuration parameters to be set.</param>
 public void Configure(ConfigParams config)
 {
     _connectionResolver.Configure(config);
     _credentialResolver.Configure(config);
 }
예제 #6
0
 /// <summary>
 /// Configures component by passing configuration parameters.
 /// </summary>
 /// <param name="config">configuration parameters to be set.</param>
 public virtual void Configure(ConfigParams config)
 {
     Name = NameResolver.Resolve(config, Name);
     _connectionResolver.Configure(config, true);
     _credentialResolver.Configure(config, true);
 }