internal IEndpoint GetEndpoint(string path, string contextPath, bool secure) { foreach (DictionaryEntry entry in this._endpoints) { IEndpoint endpoint = entry.Value as IEndpoint; ChannelSettings settings = endpoint.GetSettings(); if ((settings != null) && settings.Bind(path, contextPath)) { return(endpoint); } } return(null); }