Ejemplo n.º 1
0
        private async Task HandleDeadletterQueueAndTrackingAsync(MessageExecutionContext messageExecutionContext)
        {
            await HandleDeadletterQueueWithoutTrackingAsync(messageExecutionContext);

            await _publisher.PublishEventAsync(
                messageExecutionContext.DeadLetterIntegrationEvent,
                _modelNamingConventionController.GetDeadLetterQueueRoutingKey(_name));
        }
Ejemplo n.º 2
0
        public IEnumerable <string> GetTrackerQueueRoutingKeys(IEnumerable <string> targetSubscriberNames)
        {
            List <string> result = new List <string>();

            foreach (var subscriber in targetSubscriberNames)
            {
                result.Add(_trackerNamingConventionController.GetDeadLetterQueueRoutingKey(subscriber));
                result.Add(_trackerNamingConventionController.GetTrackingRoutingKey(subscriber));
            }

            return(result);
        }