Move PortUtils.cs

This commit is contained in:
Stef Heyenrath
2018-09-07 08:59:09 +02:00
parent 33b96c6af9
commit 913f605993
4 changed files with 10 additions and 8 deletions

View File

@@ -16,6 +16,7 @@ using WireMock.Owin;
using WireMock.RequestBuilders;
using WireMock.ResponseProviders;
using WireMock.Settings;
using WireMock.Util;
using WireMock.Validation;
namespace WireMock.Server
@@ -199,7 +200,7 @@ namespace WireMock.Server
}
else
{
int port = settings.Port > 0 ? settings.Port.Value : PortUtil.FindFreeTcpPort();
int port = settings.Port > 0 ? settings.Port.Value : PortUtils.FindFreeTcpPort();
Urls = new[] { $"{(settings.UseSSL == true ? "https" : "http")}://localhost:{port}" };
}