Vous ne pouvez pas sélectionner plus de 25 sujets Les noms de sujets doivent commencer par une lettre ou un nombre, peuvent contenir des tirets ('-') et peuvent comporter jusqu'à 35 caractères.

26 lignes
927B

  1. namespace Campaign_Tracker.Server.ExtensionData;
  2. /// <summary>
  3. /// Result of a nightly (or on-demand) extension-to-legacy referential integrity check (AC #4).
  4. /// Targeting at least 99.9% <see cref="ConsistencyPercentage"/> (NFR13).
  5. /// </summary>
  6. public sealed record LegacyLinkIntegrityReport(
  7. DateTimeOffset CheckedAt,
  8. int ProviderCount,
  9. int TotalRecords,
  10. int ConsistentRecords,
  11. int FailedRecords,
  12. double ConsistencyPercentage,
  13. IReadOnlyList<LegacyLinkIntegrityFailure> Failures)
  14. {
  15. /// <summary>True when no failures were detected (or no records exist to check).</summary>
  16. public bool IsConsistent => ProviderCount > 0 && FailedRecords == 0;
  17. }
  18. /// <summary>Describes one extension record that failed to resolve its legacy link.</summary>
  19. public sealed record LegacyLinkIntegrityFailure(
  20. string RecordType,
  21. string RecordId,
  22. LegacyLinkReference Reference,
  23. string Reason);

Powered by TurnKey Linux.