1 instantiation of UrlPrefix
Microsoft.AspNetCore.Server.HttpSys (1)
UrlPrefix.cs (1)
93return new UrlPrefix(isHttps, scheme, host, port, portValue.Value, path);
28 references to UrlPrefix
Microsoft.AspNetCore.Server.HttpSys (28)
MessagePump.cs (1)
122foreach (var prefix in _options.UrlPrefixes)
RequestProcessing\Request.cs (1)
71var prefix = requestContext.Server.Options.UrlPrefixes.GetPrefix((int)requestContext.UrlContext);
UrlPrefix.cs (5)
34public static UrlPrefix Create(string scheme, string host, string port, string path) 42return UrlPrefix.Create(scheme, host, portValue, path); 52public static UrlPrefix Create(string scheme, string host, int? portValue, string path) 99/// <param name="prefix">The string that the <see cref="UrlPrefix"/> will be created from.</param> 100public static UrlPrefix Create(string prefix)
UrlPrefixCollection.cs (21)
15public class UrlPrefixCollection : ICollection<UrlPrefix> 17private readonly IDictionary<int, UrlPrefix> _prefixes = new Dictionary<int, UrlPrefix>(1); 52/// Creates a <see cref="UrlPrefix"/> from the given string, and adds it to this collection. 54/// <param name="prefix">The string representing the <see cref="UrlPrefix"/> to add to this collection.</param> 57Add(UrlPrefix.Create(prefix)); 61/// Adds a <see cref="UrlPrefix"/> to this collection. 64public void Add(UrlPrefix item) 74internal UrlPrefix? GetPrefix(int id) 78return _prefixes.TryGetValue(id, out var prefix) ? prefix : null; 90foreach (var prefix in _prefixes.Values) 122public bool Contains(UrlPrefix item) 131public void CopyTo(UrlPrefix[] array, int arrayIndex) 142return Remove(UrlPrefix.Create(prefix)); 146public bool Remove(UrlPrefix item) 171public IEnumerator<UrlPrefix> GetEnumerator() 193var urlPrefix = pair.Value; 212private void FindHttpPortUnsynchronized(int key, UrlPrefix urlPrefix) 226var newPrefix = UrlPrefix.Create(urlPrefix.Scheme, urlPrefix.Host, port, urlPrefix.Path); 255foreach (var prefix in _prefixes.Values)