This commit is contained in:
Stef Heyenrath
2020-03-25 16:00:15 +00:00
committed by GitHub
parent 8a295e806c
commit 5809fae602
4 changed files with 186 additions and 183 deletions

View File

@@ -7,6 +7,8 @@ namespace WireMock.Owin
{
public ICollection<string> Urls { get; set; }
public int? Port { get; set; }
public bool UseSSL { get; set; }
public ICollection<(string Url, int Port)> GetDetails()
@@ -14,7 +16,7 @@ namespace WireMock.Owin
var list = new List<(string Url, int Port)>();
if (Urls == null)
{
int port = FindFreeTcpPort();
int port = Port ?? FindFreeTcpPort();
list.Add(($"{(UseSSL ? "https" : "http")}://localhost:{port}", port));
}
else