Skip to content

Commit

Permalink
Fix work on linux
Browse files Browse the repository at this point in the history
  • Loading branch information
Ali-YousefiTelori committed Oct 26, 2023
1 parent 24f3550 commit f1bb422
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -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);
}
}
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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);
}
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -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) =>
{
Expand Down

0 comments on commit f1bb422

Please sign in to comment.