feat(cluster): embed Akka HOCON config matching ScadaLink tuning

This commit is contained in:
Joseph Doherty
2026-05-26 04:31:03 -04:00
parent fdb4ac7051
commit 3d0f4dc168
3 changed files with 92 additions and 0 deletions
@@ -0,0 +1,15 @@
namespace ZB.MOM.WW.OtOpcUa.Cluster;
public static class HoconLoader
{
private const string ResourceName = "ZB.MOM.WW.OtOpcUa.Cluster.Resources.akka.conf";
public static string LoadBaseConfig()
{
using var stream = typeof(HoconLoader).Assembly.GetManifestResourceStream(ResourceName)
?? throw new InvalidOperationException(
$"Embedded resource '{ResourceName}' not found. Verify EmbeddedResource glob in csproj.");
using var reader = new StreamReader(stream);
return reader.ReadToEnd();
}
}