Skip to content

Commit 71d607d

Browse files
committed
Minor cleanup
1 parent 6a8bc55 commit 71d607d

File tree

2 files changed

+0
-8
lines changed

2 files changed

+0
-8
lines changed

src/WebJobs.Script.WebHost/Middleware/ScriptHostRequestServiceProviderMiddleware.cs

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -2,8 +2,6 @@
22
// Licensed under the MIT License. See License.txt in the project root for license information.
33

44
using System;
5-
using System.Collections.Generic;
6-
using System.Linq;
75
using System.Threading.Tasks;
86
using Microsoft.AspNetCore.Hosting.Internal;
97
using Microsoft.AspNetCore.Http;
@@ -23,9 +21,6 @@ public ScriptHostRequestServiceProviderMiddleware(RequestDelegate next)
2321

2422
public async Task Invoke(HttpContext httpContext, WebJobsScriptHostService manager)
2523
{
26-
// TODO: DI (FACAVAL) Remove this once the host check middleware is updated.
27-
//await Task.Delay(5000);
28-
2924
if (manager.Services is IServiceScopeFactory scopedServiceProvider)
3025
{
3126
var features = httpContext.Features;

src/WebJobs.Script/Config/ScriptHostOptionsSetup.cs

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -89,9 +89,6 @@ private void ConfigureFunctionTimeout(IConfigurationSection jobHostSection, Scri
8989
}
9090
options.FunctionTimeout = functionTimeout;
9191
}
92-
93-
// TODO: DI: JobHostOptions need to me updated.
94-
//scriptConfig.HostOptions.FunctionTimeout = ScriptHost.CreateTimeoutConfiguration(scriptConfig);
9592
}
9693

9794
private void ValidateTimeoutValue(ScriptJobHostOptions options, TimeSpan? timeoutValue)

0 commit comments

Comments
 (0)