We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents dbaac06 + 410dd91 commit 8e52c5fCopy full SHA for 8e52c5f
src/OneScript.Web.Server/WebServer.cs
@@ -16,6 +16,7 @@ This Source Code Form is subject to the terms of the
16
using System.Threading.Tasks;
17
using Microsoft.AspNetCore.Diagnostics;
18
using ExecutionContext = ScriptEngine.Machine.ExecutionContext;
19
+using Microsoft.Extensions.Configuration;
20
21
namespace OneScript.Web.Server
22
{
@@ -91,6 +92,10 @@ private void ConfigureApp()
91
92
var builder = WebApplication.CreateBuilder(appOptions);
93
builder.WebHost.ConfigureKestrel(options =>
94
95
+ var kestrelSection = builder.Configuration.GetSection("Kestrel");
96
+ options.Configure(kestrelSection);
97
+ kestrelSection.Bind(options);
98
+
99
options.AllowSynchronousIO = true;
100
options.ListenAnyIP(Port);
101
});
0 commit comments