a94b502ce6
Claude-Session: https://claude.ai/code/session_016J6isfcgqy4SB2RK3ZvFvT
32 lines
1.5 KiB
C#
32 lines
1.5 KiB
C#
namespace ZB.MOM.WW.MxGateway.Contracts;
|
|
|
|
/// <summary>Names of environment variables shared by the gateway worker launcher and worker process.</summary>
|
|
public static class WorkerLaunchEnvironment
|
|
{
|
|
/// <summary>Bootstrap nonce used to authenticate the worker handshake.</summary>
|
|
public const string WorkerNonce = "MXGATEWAY_WORKER_NONCE";
|
|
|
|
/// <summary>Per-attempt named-pipe connection timeout in milliseconds.</summary>
|
|
public const string PipeConnectAttemptTimeoutMilliseconds =
|
|
"MXGATEWAY_WORKER_PIPE_CONNECT_ATTEMPT_TIMEOUT_MS";
|
|
|
|
/// <summary>Bounded wait for a Write/Write2/WriteSecured/WriteSecured2 completion callback in milliseconds.</summary>
|
|
public const string WriteCompletionWaitMilliseconds =
|
|
"MXGATEWAY_WORKER_WRITE_COMPLETION_WAIT_MS";
|
|
|
|
/// <summary>Capacity of the worker's outbound MXAccess event queue.</summary>
|
|
public const string EventQueueCapacity = "MXGATEWAY_EVENT_QUEUE_CAPACITY";
|
|
|
|
/// <summary>Worker alarm polling cadence in milliseconds.</summary>
|
|
public const string AlarmPollIntervalMilliseconds = "MXGATEWAY_ALARM_POLL_INTERVAL_MS";
|
|
|
|
/// <summary>Maximum alarm records requested in one current-alarm fetch.</summary>
|
|
public const string MaxAlarmsPerFetch = "MXGATEWAY_ALARM_MAX_ALARMS_PER_FETCH";
|
|
|
|
/// <summary>
|
|
/// MXAccess client name the worker's alarm-ack writer registers with. The
|
|
/// Historian records it as the acknowledgement's OperatorNode.
|
|
/// </summary>
|
|
public const string AlarmAckClientName = "MXGATEWAY_ALARM_ACK_CLIENT_NAME";
|
|
}
|