Beispiel #1
0
 public RedirectConsumerClient(
     string redirectTopic,
     int delay,
     IConsumerClient <TKey, TValue> consumerClient,
     IProducerSender <TKey, TValue> retrySender,
     IServiceBusLogger logger
     )
 {
     this.redirectTopic  = redirectTopic;
     this.delay          = delay;
     this.consumerClient = consumerClient;
     this.retrySender    = retrySender;
     this.logger         = logger;
 }
Beispiel #2
0
        public RetryConsumerClient(
            string retryTopic,
            string groupId,
            int delay,
            IConsumerClient <TKey, TValue> consumerClient,
            IProducerSender <TKey, TValue> retrySender,
            IServiceBusLogger logger
            )
        {
            // DUVIDA: não entendi o uso dessa variavel
            this.consumed = 0;

            this.retryTopic     = retryTopic;
            this.groupId        = groupId;
            this.delay          = delay;
            this.consumerClient = consumerClient;
            this.retrySender    = retrySender;
            this.logger         = logger;
        }