26 references to UrlPrefixes
HotAddSample (1)
Startup.cs (1)
33var addresses = ServerOptions.UrlPrefixes;
Microsoft.AspNetCore.Server.HttpSys (12)
HttpSysListener.cs (2)
154Options.UrlPrefixes.RegisterAllPrefixes(UrlGroup); 194Options.UrlPrefixes.UnregisterAllPrefixes();
MessagePump.cs (6)
73if (_options.UrlPrefixes.Count > 0) 77Listener.Options.UrlPrefixes.Clear(); 82else if (_options.UrlPrefixes.Count > 0) 99Listener.Options.UrlPrefixes.Add(Constants.DefaultServerAddress); 114foreach (var prefix in _options.UrlPrefixes) 137Listener.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)
66var prefix = requestContext.Server.Options.UrlPrefixes.GetPrefix((int)requestContext.UrlContext); 161else 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)
258options.UrlPrefixes.Clear(); 259options.UrlPrefixes.Add(receiverAddress);
Listener\AuthenticationOnExistingQueueTests.cs (1)
38options.UrlPrefixes.Add(prefix);
Listener\ServerOnExistingQueueTests.cs (3)
256options.UrlPrefixes.Add("http://localhost:0"); 278options.UrlPrefixes.Add(address); 298options.UrlPrefixes.Add(rootAddress + "/server");
Listener\ServerTests.cs (1)
134options.UrlPrefixes.Add(address1);
Listener\Utilities.cs (1)
48options.UrlPrefixes.Add(prefix);
Utilities.cs (2)
95options.UrlPrefixes.Add(prefix); 107prefix = options.Value.UrlPrefixes.First(); // Has new port
QueueSharing (1)
Program.cs (1)
49options.UrlPrefixes.Add("http://localhost:5002");
SelfHostServer (2)
Program.cs (2)
24options.UrlPrefixes.Add("http://localhost:5000"); 26options.UrlPrefixes.Add("https://localhost:44319");