9cff87fe85
Remove project bookkeeping citations from shipped code comments across the solution: hyphenated task IDs (WP-14, StoreAndForward-025), milestone/task/ issue refs (M3, Task 4, Audit Log #23, #21), Bundle X task-bundle labels, and C/D/K/S/T phase labels. Comment text only — no code logic, string/log literals, or XML-doc structure changed. Genuine descriptions are preserved (only the citation is stripped), and technical lookalikes are retained (UTF-8, SHA-256, T00:00:00, M365, UTC-5, pre-C4/pre-C5 schema versions). Flagged by the new CommentChecker TaskReferenceInComment / TrackingReferenceInComment checks plus targeted grep passes; full solution builds clean, append-only guard tests pass.
25 lines
1.0 KiB
C#
25 lines
1.0 KiB
C#
namespace ZB.MOM.WW.ScadaBridge.InboundAPI;
|
|
|
|
/// <summary>
|
|
/// Abstraction the inbound API endpoint uses to determine whether
|
|
/// this node is the active (cluster-leader) central node.
|
|
///
|
|
/// The design states the inbound API is "Central cluster only (active node)" and
|
|
/// "fails over with it". A standby central node must not execute method scripts or
|
|
/// <c>Route.To()</c> calls — that can race the active node or run against stale
|
|
/// singleton state. <see cref="InboundApiEndpointFilter"/> consults this gate and
|
|
/// returns HTTP 503 from a standby so Traefik/clients only reach the live node.
|
|
///
|
|
/// The implementation lives in the Host (it needs Akka cluster state); when no
|
|
/// implementation is registered, the endpoint defaults to "allow" so non-clustered
|
|
/// hosts and tests are unaffected.
|
|
/// </summary>
|
|
public interface IActiveNodeGate
|
|
{
|
|
/// <summary>
|
|
/// <c>true</c> when this node is the active central node and may serve the
|
|
/// inbound API; <c>false</c> on a standby node.
|
|
/// </summary>
|
|
bool IsActiveNode { get; }
|
|
}
|