From 5ffbc42d8c7254ddc444c2ed0df3910af8c09903 Mon Sep 17 00:00:00 2001 From: Joseph Doherty Date: Thu, 28 May 2026 09:15:57 -0400 Subject: [PATCH] refactor(driver-galaxy): extract GalaxyDriverOptions to .Contracts MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Move GalaxyDriverOptions (and nested records GalaxyGatewayOptions, GalaxyMxAccessOptions, GalaxyRepositoryOptions, GalaxyReconnectOptions) from Config/GalaxyDriverOptions.cs into a new Driver.Galaxy.Contracts sibling project at the contracts root (no Config/ subdirectory). The existing namespace ZB.MOM.WW.OtOpcUa.Driver.Galaxy.Config is preserved unchanged — it is a runtime ABI concern and all consumers already import it via the namespace qualifier. No doc-comment substitutions required — the only cref in the file () is an intra-type parameter reference that resolves within the contracts project itself. The options file had no using directives and no NuGet type surface; the contracts project is dependency-free. The runtime Driver.Galaxy project gains a ProjectReference to .Contracts; the .slnx is updated accordingly. --- ZB.MOM.WW.OtOpcUa.slnx | 1 + .../GalaxyDriverOptions.cs | 0 .../ZB.MOM.WW.OtOpcUa.Driver.Galaxy.Contracts.csproj | 9 +++++++++ .../ZB.MOM.WW.OtOpcUa.Driver.Galaxy.csproj | 1 + 4 files changed, 11 insertions(+) rename src/Drivers/{ZB.MOM.WW.OtOpcUa.Driver.Galaxy/Config => ZB.MOM.WW.OtOpcUa.Driver.Galaxy.Contracts}/GalaxyDriverOptions.cs (100%) create mode 100644 src/Drivers/ZB.MOM.WW.OtOpcUa.Driver.Galaxy.Contracts/ZB.MOM.WW.OtOpcUa.Driver.Galaxy.Contracts.csproj diff --git a/ZB.MOM.WW.OtOpcUa.slnx b/ZB.MOM.WW.OtOpcUa.slnx index eeb553ea..fd6ab8b8 100644 --- a/ZB.MOM.WW.OtOpcUa.slnx +++ b/ZB.MOM.WW.OtOpcUa.slnx @@ -21,6 +21,7 @@ + diff --git a/src/Drivers/ZB.MOM.WW.OtOpcUa.Driver.Galaxy/Config/GalaxyDriverOptions.cs b/src/Drivers/ZB.MOM.WW.OtOpcUa.Driver.Galaxy.Contracts/GalaxyDriverOptions.cs similarity index 100% rename from src/Drivers/ZB.MOM.WW.OtOpcUa.Driver.Galaxy/Config/GalaxyDriverOptions.cs rename to src/Drivers/ZB.MOM.WW.OtOpcUa.Driver.Galaxy.Contracts/GalaxyDriverOptions.cs diff --git a/src/Drivers/ZB.MOM.WW.OtOpcUa.Driver.Galaxy.Contracts/ZB.MOM.WW.OtOpcUa.Driver.Galaxy.Contracts.csproj b/src/Drivers/ZB.MOM.WW.OtOpcUa.Driver.Galaxy.Contracts/ZB.MOM.WW.OtOpcUa.Driver.Galaxy.Contracts.csproj new file mode 100644 index 00000000..3896f7bd --- /dev/null +++ b/src/Drivers/ZB.MOM.WW.OtOpcUa.Driver.Galaxy.Contracts/ZB.MOM.WW.OtOpcUa.Driver.Galaxy.Contracts.csproj @@ -0,0 +1,9 @@ + + + net10.0 + enable + enable + true + + + diff --git a/src/Drivers/ZB.MOM.WW.OtOpcUa.Driver.Galaxy/ZB.MOM.WW.OtOpcUa.Driver.Galaxy.csproj b/src/Drivers/ZB.MOM.WW.OtOpcUa.Driver.Galaxy/ZB.MOM.WW.OtOpcUa.Driver.Galaxy.csproj index 9adccbfb..9cade14c 100644 --- a/src/Drivers/ZB.MOM.WW.OtOpcUa.Driver.Galaxy/ZB.MOM.WW.OtOpcUa.Driver.Galaxy.csproj +++ b/src/Drivers/ZB.MOM.WW.OtOpcUa.Driver.Galaxy/ZB.MOM.WW.OtOpcUa.Driver.Galaxy.csproj @@ -13,6 +13,7 @@ +