コード例 #1
0
        public DeadLetterExchangeConfiguration(RabbitMQEventBusConfiguration rabbitMQEventBusConfiguration, TimeSpan queueMessagesTTL, DeadLetterRouteKeyProvider deadLetterRouteKeyProvider, string suffix, bool cyclicDLQ)
        {
            this.rabbitMQEventBusConfiguration = rabbitMQEventBusConfiguration;

            this.suffix    = suffix;
            this.cyclicDLQ = cyclicDLQ;

            this.deadLetterExchangeName     = string.Format("{0}_{1}", rabbitMQEventBusConfiguration.ExchangeName, suffix);
            this.deadLetterQueueName        = string.Format("{0}_{1}", rabbitMQEventBusConfiguration.QueueName, suffix);
            this.deadLetterRouteKeyProvider = deadLetterRouteKeyProvider ?? new DeadLetterRouteKeyProvider((routeKey) => string.Format("{0}.{1}", routeKey, suffix));
            this.queueMessagesTTL           = queueMessagesTTL;
        }
コード例 #2
0
 public void CreateDeadLetterExchangeConfiguration(TimeSpan queueMessagesTTL, DeadLetterRouteKeyProvider deadLetterRouteKeyProvider, string suffix, bool cyclcDLQ)
 {
     this.deadLetterExchangeConfiguration = new DeadLetterExchangeConfiguration(this, queueMessagesTTL, deadLetterRouteKeyProvider, suffix, cyclcDLQ);
 }