diff --git a/src/CSharp/EasyMicroservices.Laboratory.Tests/Engine/Net/HostHttpHandlerTest.cs b/src/CSharp/EasyMicroservices.Laboratory.Tests/Engine/Net/HostHttpHandlerTest.cs index cfe66cb..f2fee4c 100644 --- a/src/CSharp/EasyMicroservices.Laboratory.Tests/Engine/Net/HostHttpHandlerTest.cs +++ b/src/CSharp/EasyMicroservices.Laboratory.Tests/Engine/Net/HostHttpHandlerTest.cs @@ -10,7 +10,8 @@ public class HostHttpHandlerTest : BaseHandlerTest { protected override BaseHandler GetHandler(ResourceManager resourceManager) { - return BaseHandler.CreateOSHandler(resourceManager); + return new HostHttpHandler(resourceManager); + //return BaseHandler.CreateOSHandler(resourceManager); } } } diff --git a/src/CSharp/EasyMicroservices.Laboratory.Tests/Engine/Net/HttpHandlerTest.cs b/src/CSharp/EasyMicroservices.Laboratory.Tests/Engine/Net/HttpHandlerTest.cs index 331be88..1e7f603 100644 --- a/src/CSharp/EasyMicroservices.Laboratory.Tests/Engine/Net/HttpHandlerTest.cs +++ b/src/CSharp/EasyMicroservices.Laboratory.Tests/Engine/Net/HttpHandlerTest.cs @@ -9,7 +9,8 @@ public class HttpHandlerTest : BaseHandlerTest { protected override BaseHandler GetHandler(ResourceManager resourceManager) { - return BaseHandler.CreateOSHandler(resourceManager); + return new HttpHandler(resourceManager); + //return BaseHandler.CreateOSHandler(resourceManager); } } } \ No newline at end of file diff --git a/src/CSharp/EasyMicroservices.Laboratory/Engine/Net/Http/HostHttpHandlerBase.cs b/src/CSharp/EasyMicroservices.Laboratory/Engine/Net/Http/HostHttpHandlerBase.cs index 8e69bd3..429be23 100644 --- a/src/CSharp/EasyMicroservices.Laboratory/Engine/Net/Http/HostHttpHandlerBase.cs +++ b/src/CSharp/EasyMicroservices.Laboratory/Engine/Net/Http/HostHttpHandlerBase.cs @@ -75,7 +75,9 @@ public override void Stop() protected virtual async Task InternalStart(int port) { var builder = WebApplication.CreateBuilder(); - builder.WebHost.UseUrls($"http://*:{port}"); + builder.WebHost + .UseUrls($"http://*:{port}") + .UseKestrel(); var app = builder.Build(); app.Use(async (context, next) => {