a25593a9c6
Group all 69 projects into category subfolders under src/ and tests/ so the Rider Solution Explorer mirrors the module structure. Folders: Core, Server, Drivers (with a nested Driver CLIs subfolder), Client, Tooling. - Move every project folder on disk with git mv (history preserved as renames). - Recompute relative paths in 57 .csproj files: cross-category ProjectReferences, the lib/ HintPath+None refs in Driver.Historian.Wonderware, and the external mxaccessgw refs in Driver.Galaxy and its test project. - Rebuild ZB.MOM.WW.OtOpcUa.slnx with nested solution folders. - Re-prefix project paths in functional scripts (e2e, compliance, smoke SQL, integration, install). Build green (0 errors); unit tests pass. Docs left for a separate pass. Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
35 lines
1.7 KiB
C#
35 lines
1.7 KiB
C#
namespace ZB.MOM.WW.OtOpcUa.Core.Abstractions;
|
|
|
|
/// <summary>
|
|
/// Stability tier of a driver type. Determines which cross-cutting runtime protections
|
|
/// apply — per-tier retry defaults, memory-tracking thresholds, and whether out-of-process
|
|
/// supervision with process-level recycle is in play.
|
|
/// </summary>
|
|
/// <remarks>
|
|
/// Per <c>docs/v2/driver-stability.md</c> §2-4 and <c>docs/v2/plan.md</c> decisions #63-74.
|
|
///
|
|
/// <list type="bullet">
|
|
/// <item><b>A</b> — managed, known-good SDK; low blast radius. In-process. Fast retries.
|
|
/// Examples: OPC UA Client (OPCFoundation stack), S7 (S7NetPlus).</item>
|
|
/// <item><b>B</b> — native or semi-trusted SDK with an in-process footprint. Examples: Modbus.</item>
|
|
/// <item><b>C</b> — unmanaged SDK with COM/STA constraints, leak risk, or other out-of-process
|
|
/// requirements. Must run as a separate Host process behind a Proxy with a supervisor that
|
|
/// can recycle the process on hard-breach. Example: Galaxy (MXAccess COM).</item>
|
|
/// </list>
|
|
///
|
|
/// <para>Process-kill protections (<c>MemoryRecycle</c>, <c>ScheduledRecycleScheduler</c>) are
|
|
/// Tier C only per decisions #73-74 and #145 — killing an in-process Tier A/B driver also kills
|
|
/// every OPC UA session and every co-hosted driver, blast-radius worse than the leak.</para>
|
|
/// </remarks>
|
|
public enum DriverTier
|
|
{
|
|
/// <summary>Managed SDK, in-process, low blast radius.</summary>
|
|
A,
|
|
|
|
/// <summary>Native or semi-trusted SDK, in-process.</summary>
|
|
B,
|
|
|
|
/// <summary>Unmanaged SDK, out-of-process required with Proxy+Host+Supervisor.</summary>
|
|
C,
|
|
}
|