internal static IPEndPoint GetListeningSiloEndpoint(this EndpointOptions options) { return(options.SiloListeningEndpoint ?? options.GetPublicSiloEndpoint()); }
internal static IPEndPoint GetPublicSiloEndpoint(this EndpointOptions options) { return(new IPEndPoint(options.AdvertisedIPAddress, options.SiloPort)); }
internal static IPEndPoint GetPublicProxyEndpoint(this EndpointOptions options) { return(options.GatewayPort != 0 ? new IPEndPoint(options.AdvertisedIPAddress, options.GatewayPort) : null); }
internal static IPEndPoint GetListeningProxyEndpoint(this EndpointOptions options) { return(options.GatewayListeningEndpoint ?? options.GetPublicProxyEndpoint()); }