Exemple #1
0
        private void OnRemoveEndpoint(EndpointDispatcher endpoint)
        {
            lock (this.ThisLock)
            {
                if (this.State == CommunicationState.Opened)
                {
                    _filterTable.RemoveEndpoint(endpoint);
                }

                endpoint.Detach(this);
            }
        }
Exemple #2
0
 private void OnRemoveEndpoint(EndpointDispatcher endpoint)
 {
     lock (base.ThisLock)
     {
         if (base.State == CommunicationState.Opened)
         {
             this.filterTable.RemoveEndpoint(endpoint);
             if (this.addressTable != null)
             {
                 this.addressTable.Remove(endpoint.AddressFilter);
             }
         }
         endpoint.Detach(this);
     }
 }