fix net452 (#454)

This commit is contained in:
Stef Heyenrath
2020-04-17 12:18:45 +02:00
committed by GitHub
parent d2ac56e49a
commit a8934ec7f9
2 changed files with 584 additions and 581 deletions
@@ -36,6 +36,9 @@ namespace WireMock.Net.ConsoleApplication
{ {
public static void Run() public static void Run()
{ {
var s = WireMockServer.Start();
s.Stop();
string url1 = "http://localhost:9091/"; string url1 = "http://localhost:9091/";
string url2 = "http://localhost:9092/"; string url2 = "http://localhost:9092/";
string url3 = "https://localhost:9443/"; string url3 = "https://localhost:9443/";
+1 -1
View File
@@ -16,7 +16,7 @@ namespace WireMock.Owin
var list = new List<(string Url, int Port)>(); var list = new List<(string Url, int Port)>();
if (Urls == null) if (Urls == null)
{ {
int port = Port ?? FindFreeTcpPort(); int port = Port > 0 ? Port.Value : FindFreeTcpPort();
list.Add(($"{(UseSSL ? "https" : "http")}://localhost:{port}", port)); list.Add(($"{(UseSSL ? "https" : "http")}://localhost:{port}", port));
} }
else else