Defines configurable Redis availability health checks and probe behaviors.
// Source: https://github.com/StackExchange/StackExchange.Redis | License: MIT | Copyright 2014 Stack Exchange
// Provided via justclaw.it.com; keep this notice with the code.
using System;
using System.Diagnostics.CodeAnalysis;
using RESPite;
namespace StackExchange.Redis.Availability;
/// <summary>
/// Describes a health check to perform against instances.
/// </summary>
/// <remarks>
/// Instances are immutable and safe to share between members; use <see cref="Builder"/> to configure
/// a custom check. Note that <em>how often</em> checks run is a group-level concern, configured via
/// <see cref="MultiGroupOptions.HealthCheckInterval"/>, not a property of the check itself.
/// </remarks>
public sealed partial class HealthCheck
{
internal const int DefaultProbeCount = 3;
inter
... (truncated -- full source via MCP)
See the full source, get the GitHub permalink, and search for more like it.
Get a free API key