26 references to UrlPrefixes
HotAddSample (1)
Startup.cs (1)
33
var addresses = ServerOptions.
UrlPrefixes
;
Microsoft.AspNetCore.Server.HttpSys (12)
HttpSysListener.cs (2)
154
Options.
UrlPrefixes
.RegisterAllPrefixes(UrlGroup);
194
Options.
UrlPrefixes
.UnregisterAllPrefixes();
MessagePump.cs (6)
73
if (_options.
UrlPrefixes
.Count > 0)
77
Listener.Options.
UrlPrefixes
.Clear();
82
else if (_options.
UrlPrefixes
.Count > 0)
99
Listener.Options.
UrlPrefixes
.Add(Constants.DefaultServerAddress);
114
foreach (var prefix in _options.
UrlPrefixes
)
137
Listener.Options.
UrlPrefixes
.Add(value);
MessagePump.Log.cs (2)
32
$"Overriding address(es) '{{ServerAddresses}}'. Binding to endpoints added to {nameof(HttpSysOptions.
UrlPrefixes
)} instead.",
46
$"Overriding endpoints added to {nameof(HttpSysOptions.
UrlPrefixes
)} since {nameof(IServerAddressesFeature.PreferHostingUrls)} is set to true. Binding to address(es) '{{ServerAddresses}}' instead.",
RequestProcessing\Request.cs (2)
66
var prefix = requestContext.Server.Options.
UrlPrefixes
.GetPrefix((int)requestContext.UrlContext);
161
else if (requestContext.Server.Options.
UrlPrefixes
.TryMatchLongestPrefix(IsHttps, cookedUrl.GetHost()!, originalPath, out var pathBase, out var path))
Microsoft.AspNetCore.Server.HttpSys.FunctionalTests (10)
DelegateTests.cs (2)
258
options.
UrlPrefixes
.Clear();
259
options.
UrlPrefixes
.Add(receiverAddress);
Listener\AuthenticationOnExistingQueueTests.cs (1)
38
options.
UrlPrefixes
.Add(prefix);
Listener\ServerOnExistingQueueTests.cs (3)
256
options.
UrlPrefixes
.Add("http://localhost:0");
278
options.
UrlPrefixes
.Add(address);
298
options.
UrlPrefixes
.Add(rootAddress + "/server");
Listener\ServerTests.cs (1)
134
options.
UrlPrefixes
.Add(address1);
Listener\Utilities.cs (1)
48
options.
UrlPrefixes
.Add(prefix);
Utilities.cs (2)
95
options.
UrlPrefixes
.Add(prefix);
107
prefix = options.Value.
UrlPrefixes
.First(); // Has new port
QueueSharing (1)
Program.cs (1)
49
options.
UrlPrefixes
.Add("http://localhost:5002");
SelfHostServer (2)
Program.cs (2)
24
options.
UrlPrefixes
.Add("http://localhost:5000");
26
options.
UrlPrefixes
.Add("https://localhost:44319");