<PackageReference Include="System.Security.Permissions" Version="9.0.10" />

EndpointPermission

public class EndpointPermission
Defines an endpoint that is authorized by a SocketPermission instance.
namespace System.Net { public class EndpointPermission { public string Hostname => null; public int Port => 0; public TransportType Transport { get; } internal EndpointPermission() { } public override bool Equals(object obj) { return false; } public override int GetHashCode() { return 0; } } }