コード例 #1
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);
        }
コード例 #2
0
        public void Configure(ConfigParams config)
        {
            _logger.Configure(config);
            _connectionResolver.Configure(config);
            _storage.Configure(config);
            _streamingController.Configure(config);

            _minChunkSize      = config.GetAsLongWithDefault("options.min_chunk_size", _minChunkSize);
            _maxBlobSize       = config.GetAsLongWithDefault("options.max_blob_size", _maxBlobSize);
            _reducedRedundancy = config.GetAsBooleanWithDefault("options.reduced_redundancy", _reducedRedundancy);
            _connectTimeout    = config.GetAsIntegerWithDefault("options.connect_timeout", _connectTimeout);
            _maxTake           = config.GetAsLongWithDefault("options.max_take", _maxTake);
        }
コード例 #3
0
        /// <summary>
        /// Configure are configures component by passing configuration parameters.
        /// </summary>
        /// <param name="config">Configuration parameters to be set</param>
        public void Configure(ConfigParams config)
        {
            config = config.SetDefaults(_defaultConfig);
            _connectionResolver.Configure(config);
            _logger.Configure(config);

            _options = _options.Override(config.GetSection("options"));

            _clientId         = config.GetAsStringWithDefault("client_id", _clientId);
            _retryConnect     = config.GetAsBooleanWithDefault("options.retry_connect", _retryConnect);
            _connectTimeout   = config.GetAsIntegerWithDefault("options.connect_timeout", _connectTimeout);
            _reconnectTimeout = config.GetAsIntegerWithDefault("options.reconnect_timeout", _reconnectTimeout);
            _keepAliveTimeout = config.GetAsIntegerWithDefault("options.keepalive_timeout", _keepAliveTimeout);
        }
コード例 #4
0
 /// <summary>
 /// Configures component by passing configuration parameters.
 /// </summary>
 /// <param name="config">configuration parameters to be set.</param>
 public void Configure(ConfigParams config)
 {
     _dependencyResolver.Configure(config);
     _logger.Configure(config);
 }