public IEnumerable <(string Key, string Error)> ValidateResource(ISubscription resource, SubscriptionHealthCheckOptions 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(ISubscription resource, SubscriptionHealthCheckOptions 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(ISubscription resource, SubscriptionHealthCheckOptions options)
        {
            if (resource == null)
            {
                throw new ArgumentNullException(nameof(resource));
            }

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

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

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

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

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

            return(Check(options.DefaultMessageTtlDuration, resource.DefaultMessageTtlDuration));
        }
Beispiel #6
0
        public IEnumerable <(string Key, string Error)> ValidateResource(ISubscription resource, SubscriptionHealthCheckOptions options)
        {
            if (resource == null)
            {
                throw new ArgumentNullException(nameof(resource));
            }

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

            if (!options.IsDeadLetteringEnabledForFilterEvaluationFailedMessages.HasValue)
            {
                yield break;
            }

            if (resource.IsDeadLetteringEnabledForFilterEvaluationFailedMessages != options.IsDeadLetteringEnabledForFilterEvaluationFailedMessages.Value)
            {
                yield return(nameof(options.IsDeadLetteringEnabledForFilterEvaluationFailedMessages), $"Expected Value: '{options.IsDeadLetteringEnabledForFilterEvaluationFailedMessages}', Actual Value: '{resource.IsDeadLetteringEnabledForFilterEvaluationFailedMessages}'");
            }
        }