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