Exemple #1
0
 public void OnClose(TcpTransportManager manager)
 {
     if (manager == this.ipv4TransportManager)
     {
         this.ipv4TransportManager = null;
     }
     else if (manager == this.ipv6TransportManager)
     {
         this.ipv6TransportManager = null;
     }
     if ((this.ipv4TransportManager == null) && (this.ipv6TransportManager == null))
     {
         TcpChannelListener.StaticTransportManagerTable.UnregisterUri(base.ListenUri, base.HostNameComparisonMode);
     }
 }
        public void OnClose(TcpTransportManager manager)
        {
            if (manager == this.ipv4TransportManager)
            {
                this.ipv4TransportManager = null;
            }
            else if (manager == this.ipv6TransportManager)
            {
                this.ipv6TransportManager = null;
            }
            else
            {
                Fx.Assert("Unknown transport manager passed to OnClose().");
            }

            if ((this.ipv4TransportManager == null) && (this.ipv6TransportManager == null))
            {
                TcpChannelListener.StaticTransportManagerTable.UnregisterUri(this.ListenUri, this.HostNameComparisonMode);
            }
        }