protected void Fault <TChannelListener>(UriPrefixTable <TChannelListener> addressTable, Exception exception) where TChannelListener : ChannelListenerBase { foreach (KeyValuePair <BaseUriWithWildcard, TChannelListener> pair in addressTable.GetAll()) { TChannelListener local = pair.Value; local.Fault(exception); local.Abort(); } }
internal UriPrefixTable(UriPrefixTable <TItem> objectToClone) : this(objectToClone.includePortInComparison, objectToClone.useWeakReferences) { if (objectToClone.Count > 0) { foreach (KeyValuePair <BaseUriWithWildcard, TItem> pair in objectToClone.GetAll()) { this.RegisterUri(pair.Key.BaseAddress, pair.Key.HostNameComparisonMode, pair.Value); } } }