<PackageReference Include="BouncyCastle.Cryptography" Version="2.6.2" />

Org.BouncyCastle.Tls.HeartbeatMessage

public sealed class HeartbeatMessage
namespace Org.BouncyCastle.Tls { public sealed class HeartbeatMessage { public int PaddingLength { get; } public byte[] Payload { get; } public short Type { get; } public static HeartbeatMessage Create(TlsContext context, short type, byte[] payload); public static HeartbeatMessage Create(TlsContext context, short type, byte[] payload, int paddingLength); public HeartbeatMessage(short type, byte[] payload, byte[] padding); public void Encode(Stream output); public static HeartbeatMessage Parse(Stream input); } }