private void OnRemoveEndpoint(EndpointDispatcher endpoint) { lock (this.ThisLock) { if (this.State == CommunicationState.Opened) { _filterTable.RemoveEndpoint(endpoint); } endpoint.Detach(this); } }
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); } }