16 lines
561 B
C#
16 lines
561 B
C#
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();
|
|
}
|
|
}
|