internal static bool Equals(HealthCheckOptions options1, HealthCheckOptions options2) { if (options1 == null && options2 == null) { return(true); } if (options1 == null || options2 == null) { return(false); } return(PassiveHealthCheckOptions.Equals(options1.Passive, options2.Passive) && ActiveHealthCheckOptions.Equals(options1.Active, options2.Active)); }
internal static bool Equals(PassiveHealthCheckOptions options1, PassiveHealthCheckOptions options2) { if (options1 == null && options2 == null) { return(true); } if (options1 == null || options2 == null) { return(false); } return(options1.Enabled == options2.Enabled && string.Equals(options1.Policy, options2.Policy, StringComparison.OrdinalIgnoreCase) && options1.ReactivationPeriod == options2.ReactivationPeriod); }