11 references to Create
Microsoft.AspNetCore.Server.HttpSys (2)
UrlPrefixCollection.cs (2)
57
Add(UrlPrefix.
Create
(prefix));
142
return Remove(UrlPrefix.
Create
(prefix));
Microsoft.AspNetCore.Server.HttpSys.FunctionalTests (3)
Listener\AuthenticationOnExistingQueueTests.cs (1)
36
var basePrefix = UrlPrefix.
Create
(baseServerAddress);
ServerTests.cs (2)
75
var prefix = UrlPrefix.
Create
(address);
343
server.Listener.Options.UrlPrefixes.Add(UrlPrefix.
Create
(address));
Microsoft.AspNetCore.Server.HttpSys.Tests (6)
UrlPrefixTests.cs (6)
18
Assert.Throws<FormatException>(() => UrlPrefix.
Create
(url));
27
Assert.Throws<ArgumentOutOfRangeException>(() => UrlPrefix.
Create
(url));
39
Assert.Throws<ArgumentException>(() => UrlPrefix.
Create
(url));
49
Assert.Throws<FormatException>(() => UrlPrefix.
Create
(url));
66
var urlPrefix = UrlPrefix.
Create
(url);
79
var urlPrefix = UrlPrefix.
Create
("http://localhost:8080/p\u0041\u030Athbase");