void ProcessSelection(TcpChannelListener channelListener, IPAddress ipAddressAny, UriHostNameType ipHostNameType, ref ExclusiveTcpTransportManager transportManager, IList <TransportManager> result) { if (transportManager == null) { transportManager = new ExclusiveTcpTransportManager(this, channelListener, ipAddressAny, ipHostNameType); } result.Add(transportManager); }
public void OnClose(TcpTransportManager manager) { if (manager == ipv4TransportManager) { ipv4TransportManager = null; } else if (manager == ipv6TransportManager) { ipv6TransportManager = null; } else { Fx.Assert("Unknown transport manager passed to OnClose()."); } if ((ipv4TransportManager == null) && (ipv6TransportManager == null)) { TcpChannelListener.StaticTransportManagerTable.UnregisterUri(ListenUri, HostNameComparisonMode); } }