public ResponderConfigurationBuilder(QueueConfiguration defaultQueue = null, ExchangeConfiguration defaultExchange = null) { _exchangeBuilder = new ExchangeConfigurationBuilder(defaultExchange); _queueBuilder = new QueueConfigurationBuilder(defaultQueue); Configuration = new ResponderConfiguration { Queue = _queueBuilder.Configuration, Exchange = _exchangeBuilder.Configuration, RoutingKey = _queueBuilder.Configuration.QueueName }; }
public ITopologySelector UseConfiguration(Action <IExchangeConfigurationBuilder> cfgAction, Func <string, string> bindingKeyTransformer = null) { var builder = new ExchangeConfigurationBuilder(new ExchangeUpdateConfiguration(_config.Exchange)); cfgAction(builder); var cfg = builder.Configuration as ExchangeUpdateConfiguration; cfg.ExchangeName = _current.ExchangeName; if (bindingKeyTransformer != null) { cfg.BindingTransformer = bindingKeyTransformer; } Exchanges.Add(cfg); return(this); }
public RequestConfigurationBuilder(RequestConfiguration defaultConfig) { _replyQueue = new QueueConfigurationBuilder(defaultConfig.ReplyQueue); _exchange = new ExchangeConfigurationBuilder(defaultConfig.Exchange); Configuration = defaultConfig ?? new RequestConfiguration(); }
public PublishConfigurationBuilder(RequestConfiguration defaultConfig) { _exchange = new ExchangeConfigurationBuilder(defaultConfig.Exchange); }
public PublishConfigurationBuilder(ExchangeConfiguration defaultExchange = null, string routingKey = null) { _exchange = new ExchangeConfigurationBuilder(defaultExchange); _routingKey = routingKey ?? _oneOrMoreWords; }
public SubscriptionConfigurationBuilder(QueueConfiguration initialQueue, ExchangeConfiguration initialExchange, string routingKey) { _exchangeBuilder = new ExchangeConfigurationBuilder(initialExchange); _queueBuilder = new QueueConfigurationBuilder(initialQueue); _routingKey = routingKey; }