fix(IPC-36,IPC-37): guard secondary contracts
This commit is contained in:
@@ -0,0 +1,25 @@
|
||||
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";
|
||||
}
|
||||
Reference in New Issue
Block a user