Minecraft-Phantom-Panel/Utils/Phantom.Utils.Rpc/RpcConfiguration.cs

9 lines
281 B
C#

using NetMQ;
namespace Phantom.Utils.Rpc;
public sealed record RpcConfiguration(string ServiceName, string Host, ushort Port, NetMQCertificate ServerCertificate) {
internal string LoggerName => "Rpc:" + ServiceName;
internal string TcpUrl => "tcp://" + Host + ":" + Port;
}