Exemple #1
0
        private void OnAddEndpoint(EndpointDispatcher endpoint)
        {
            lock (this.ThisLock)
            {
                endpoint.Attach(this);

                if (this.State == CommunicationState.Opened)
                {
                    _filterTable.AddEndpoint(endpoint);
                }
            }
        }
Exemple #2
0
 private void OnAddEndpoint(EndpointDispatcher endpoint)
 {
     lock (base.ThisLock)
     {
         endpoint.Attach(this);
         if (base.State == CommunicationState.Opened)
         {
             if (this.addressTable != null)
             {
                 this.addressTable.Add(endpoint.AddressFilter, endpoint.EndpointAddress, endpoint.FilterPriority);
             }
             this.filterTable.AddEndpoint(endpoint);
         }
     }
 }