public IEnumerable <(string Key, string Error)> ValidateResource(IQueue resource, QueueHealthCheckOptions options)
        {
            if (resource == null)
            {
                throw new ArgumentNullException(nameof(resource));
            }

            if (options == null)
            {
                throw new ArgumentNullException(nameof(options));
            }

            return(Check(options.IsDeadLetteringEnabledForExpiredMessages, resource.IsDeadLetteringEnabledForExpiredMessages));
        }
        public IEnumerable <(string Key, string Error)> ValidateResource(IQueue resource, QueueHealthCheckOptions options)
        {
            if (resource == null)
            {
                throw new ArgumentNullException(nameof(resource));
            }

            if (options == null)
            {
                throw new ArgumentNullException(nameof(options));
            }

            return(Check(options.MaxDeliveryCountBeforeDeadLetteringMessage, resource.MaxDeliveryCountBeforeDeadLetteringMessage));
        }
        public IEnumerable <(string Key, string Error)> ValidateResource(IQueue resource, QueueHealthCheckOptions options)
        {
            if (resource == null)
            {
                throw new ArgumentNullException(nameof(resource));
            }

            if (options == null)
            {
                throw new ArgumentNullException(nameof(options));
            }

            return(Check(options.DeleteOnIdleDurationInMinutes, resource.DeleteOnIdleDurationInMinutes));
        }
Esempio n. 4
0
        public IEnumerable <(string Key, string Error)> ValidateResource(IQueue resource, QueueHealthCheckOptions options)
        {
            if (resource == null)
            {
                throw new ArgumentNullException(nameof(resource));
            }

            if (options == null)
            {
                throw new ArgumentNullException(nameof(options));
            }

            return(Check(options.DuplicateMessageDetectionHistoryDuration, resource.DuplicateMessageDetectionHistoryDuration));
        }
Esempio n. 5
0
        public IEnumerable <(string Key, string Error)> ValidateResource(IQueue resource, QueueHealthCheckOptions options)
        {
            if (resource == null)
            {
                throw new ArgumentNullException(nameof(resource));
            }

            if (options == null)
            {
                throw new ArgumentNullException(nameof(options));
            }

            return(Check(options.IsDuplicateDetectionEnabled, resource.IsDuplicateDetectionEnabled));
        }
Esempio n. 6
0
        public IEnumerable <(string Key, string Error)> ValidateResource(IQueue resource, QueueHealthCheckOptions options)
        {
            if (resource == null)
            {
                throw new ArgumentNullException(nameof(resource));
            }

            if (options == null)
            {
                throw new ArgumentNullException(nameof(options));
            }

            return(Check(options.MaxSizeInMB, resource.MaxSizeInMB));
        }