コード例 #1
0
 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);
 }
コード例 #2
0
        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);
            }
        }