/// <inheritdoc />
        public async Task <bool> ValidateAsync(int indexValue, string endpoint, CancellationToken cancellationToken)
        {
            var success = false;

            switch (indexValue)
            {
            case HealthIndex:
                success = await _healthLogic.IsHealthyAsync().ConfigureAwait(false);

                break;

            default:
                _logger.LogWarning("Unknown probe index");
                break;
            }

            return(success);
        }
 /// <inheritdoc />
 public sealed override Task <bool> ValidationHandlerAsync()
 {
     return(_handler.IsHealthyAsync());
 }