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