refactor: rename ScadaLink → ZB.MOM.WW.ScadaBridge (code + projects + namespaces)

Solution + 23 src projects + 26 test projects renamed; folders, csproj,
namespaces, and ScadaLinkDbContext/ScadaBridgeDbContext class updated.
ActorSystem "scadalink" → "scadabridge", Akka seed-node URLs migrated.
SQL roles/logins, LDAP domains, CLI command name, and CLI config dir
(~/.scadalink → ~/.scadabridge) also renamed.

Build green; 5 Host.Tests fail awaiting SQL login rename in next commit.
Pre-existing StaleTagMonitor timing flakes unchanged.

Rename script committed at tools/rename-to-scadabridge.sh.
This commit is contained in:
Joseph Doherty
2026-05-28 09:37:45 -04:00
parent 6d87ee3c3b
commit 7b0b9c7365
1531 changed files with 11180 additions and 11054 deletions
@@ -0,0 +1,32 @@
namespace ZB.MOM.WW.ScadaBridge.Commons.Entities.Sites;
public class DataConnection
{
/// <summary>Gets or sets the database primary key.</summary>
public int Id { get; set; }
/// <summary>Gets or sets the owning site's id.</summary>
public int SiteId { get; set; }
/// <summary>Gets or sets the unique name of this data connection within the site.</summary>
public string Name { get; set; }
/// <summary>Gets or sets the protocol type string (e.g. "OpcUa").</summary>
public string Protocol { get; set; }
/// <summary>Gets or sets the primary protocol-specific configuration JSON.</summary>
public string? PrimaryConfiguration { get; set; }
/// <summary>Gets or sets the backup protocol-specific configuration JSON used on failover.</summary>
public string? BackupConfiguration { get; set; }
/// <summary>Gets or sets the number of failover retry attempts before the connection is marked failed.</summary>
public int FailoverRetryCount { get; set; } = 3;
/// <summary>
/// Initializes a new <see cref="DataConnection"/> with the required fields.
/// </summary>
/// <param name="name">Unique name of the connection within the site.</param>
/// <param name="protocol">Protocol type string (e.g. "OpcUa").</param>
/// <param name="siteId">Id of the owning site.</param>
public DataConnection(string name, string protocol, int siteId)
{
Name = name ?? throw new ArgumentNullException(nameof(name));
Protocol = protocol ?? throw new ArgumentNullException(nameof(protocol));
SiteId = siteId;
}
}
@@ -0,0 +1,32 @@
namespace ZB.MOM.WW.ScadaBridge.Commons.Entities.Sites;
public class Site
{
/// <summary>Primary key.</summary>
public int Id { get; set; }
/// <summary>Human-readable display name for the site.</summary>
public string Name { get; set; }
/// <summary>Machine-readable identifier used in Akka addresses and API routing.</summary>
public string SiteIdentifier { get; set; }
/// <summary>Optional description of the site.</summary>
public string? Description { get; set; }
/// <summary>Akka remote address for site node A (ClusterClient contact point).</summary>
public string? NodeAAddress { get; set; }
/// <summary>Akka remote address for site node B (ClusterClient contact point).</summary>
public string? NodeBAddress { get; set; }
/// <summary>gRPC endpoint for site node A used by the central SiteStreamGrpcClient.</summary>
public string? GrpcNodeAAddress { get; set; }
/// <summary>gRPC endpoint for site node B used by the central SiteStreamGrpcClient.</summary>
public string? GrpcNodeBAddress { get; set; }
/// <summary>
/// Initializes a new site with the required name and identifier.
/// </summary>
/// <param name="name">Human-readable display name.</param>
/// <param name="siteIdentifier">Machine-readable identifier used in Akka addresses.</param>
public Site(string name, string siteIdentifier)
{
Name = name ?? throw new ArgumentNullException(nameof(name));
SiteIdentifier = siteIdentifier ?? throw new ArgumentNullException(nameof(siteIdentifier));
}
}