64e3fbe035
v2-ci / build (push) Failing after 1m43s
v2-ci / unit-tests (tests/Core/ZB.MOM.WW.OtOpcUa.Cluster.Tests) (push) Has been skipped
v2-ci / unit-tests (tests/Server/ZB.MOM.WW.OtOpcUa.ControlPlane.Tests) (push) Has been skipped
v2-ci / unit-tests (tests/Server/ZB.MOM.WW.OtOpcUa.OpcUaServer.Tests) (push) Has been skipped
v2-ci / unit-tests (tests/Server/ZB.MOM.WW.OtOpcUa.Runtime.Tests) (push) Has been skipped
v2-ci / unit-tests (tests/Server/ZB.MOM.WW.OtOpcUa.Security.Tests) (push) Has been skipped
v2-ci / integration (tests/Server/ZB.MOM.WW.OtOpcUa.Host.IntegrationTests) (push) Has been skipped
v2-ci / integration (tests/Server/ZB.MOM.WW.OtOpcUa.OpcUaServer.IntegrationTests) (push) Has been skipped
Adds <summary>, <param>, <typeparam>, and <inheritdoc/> tags to public members surfaced by commentchecker — resolves 5,847 of 5,869 issues (99.6%) across three /fixdocs passes.
19 lines
787 B
C#
19 lines
787 B
C#
namespace ZB.MOM.WW.OtOpcUa.Cluster;
|
|
|
|
/// <summary>Loads embedded HOCON configuration resources.</summary>
|
|
public static class HoconLoader
|
|
{
|
|
private const string ResourceName = "ZB.MOM.WW.OtOpcUa.Cluster.Resources.akka.conf";
|
|
|
|
/// <summary>Loads the base Akka configuration from embedded resources.</summary>
|
|
/// <returns>The loaded HOCON configuration as a string.</returns>
|
|
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();
|
|
}
|
|
}
|