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);
 }
示例#4
0
 internal static IPEndPoint GetListeningProxyEndpoint(this EndpointOptions options)
 {
     return(options.GatewayListeningEndpoint ?? options.GetPublicProxyEndpoint());
 }