public IEnumerable <(string Key, string Error)> ValidateResource(ITopic resource, TopicHealthCheckOptions options) { if (resource == null) { throw new ArgumentNullException(nameof(resource)); } if (options == null) { throw new ArgumentNullException(nameof(options)); } return(Check(options.IsExpressEnabled, resource.IsExpressEnabled)); }
public IEnumerable <(string Key, string Error)> ValidateResource(ITopic resource, TopicHealthCheckOptions options) { if (resource == null) { throw new ArgumentNullException(nameof(resource)); } if (options == null) { throw new ArgumentNullException(nameof(options)); } return(Check(options.DuplicateMessageDetectionHistoryDuration, resource.DuplicateMessageDetectionHistoryDuration)); }
public IEnumerable <(string Key, string Error)> ValidateResource(ITopic resource, TopicHealthCheckOptions 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(ITopic resource, TopicHealthCheckOptions options) { if (resource == null) { throw new ArgumentNullException(nameof(resource)); } if (options == null) { throw new ArgumentNullException(nameof(options)); } if (!options.SubscriptionCount.HasValue) { yield break; } if (resource.SubscriptionCount != options.SubscriptionCount.Value) { yield return(nameof(options.SubscriptionCount), $"Expected Value: '{options.SubscriptionCount}', Actual Value: '{resource.SubscriptionCount}'"); } }