mirror of
https://github.com/chylex/Minecraft-Phantom-Panel.git
synced 2025-10-01 08:02:49 +02:00
21 lines
554 B
C#
21 lines
554 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,
|
|
AuthToken AuthToken,
|
|
ushort PingIntervalSeconds,
|
|
ushort MessageQueueCapacity,
|
|
ushort FrameQueueCapacity,
|
|
ushort MaxConcurrentlyHandledMessages
|
|
) : RpcCommonConnectionParameters(
|
|
MessageQueueCapacity,
|
|
FrameQueueCapacity,
|
|
MaxConcurrentlyHandledMessages
|
|
) {
|
|
internal TimeSpan PingInterval => TimeSpan.FromSeconds(PingIntervalSeconds);
|
|
}
|