1
0
mirror of https://github.com/chylex/Minecraft-Phantom-Panel.git synced 2026-01-12 17:58:15 +01:00
Files
Minecraft-Phantom-Panel/Utils/Phantom.Utils.Rpc/Runtime/Server/RpcServerConnectionParameters.cs

20 lines
532 B
C#

using System.Net;
using Phantom.Utils.Rpc.Runtime.Tls;
namespace Phantom.Utils.Rpc.Runtime.Server;
public sealed record RpcServerConnectionParameters(
EndPoint EndPoint,
RpcServerCertificate Certificate,
ushort PingIntervalSeconds,
ushort MessageQueueCapacity,
ushort FrameQueueCapacity,
ushort MaxConcurrentlyHandledMessages
) : RpcCommonConnectionParameters(
MessageQueueCapacity,
FrameQueueCapacity,
MaxConcurrentlyHandledMessages
) {
internal TimeSpan PingInterval => TimeSpan.FromSeconds(PingIntervalSeconds);
}