Exemple #1
0
 private 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);
 }
 private 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);
 }
Exemple #3
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;
     }
     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);
            }
        }
        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);
            }
        }