Skip to content

Commit

Permalink
Updating packages, removing storage extension references from WebHost…
Browse files Browse the repository at this point in the history
…, test fixes and other cleanup.
  • Loading branch information
fabiocav committed Aug 6, 2018
1 parent f95f2ec commit e63a1e0
Show file tree
Hide file tree
Showing 23 changed files with 53 additions and 1,263 deletions.
3 changes: 1 addition & 2 deletions sample/host.json
Original file line number Diff line number Diff line change
Expand Up @@ -29,6 +29,5 @@
"healthCheckThreshold": 6,
"counterThreshold": 0.80
},
"functionTimeout": "00:05:00",
"functions": [ "HttpTrigger-Csharp", "ManualTrigger-CSharp" ]
"functionTimeout": "00:05:00"
}
Original file line number Diff line number Diff line change
Expand Up @@ -32,15 +32,13 @@ namespace Microsoft.Azure.WebJobs.Script.WebHost.Controllers
public class FunctionsController : Controller
{
private readonly IWebFunctionsManager _functionsManager;
private readonly ScriptHostManager _scriptHostManager;
private readonly IWebJobsRouter _webJobsRouter;
private readonly ILogger _logger;
private static readonly Regex FunctionNameValidationRegex = new Regex(@"^[a-z][a-z0-9_\-]{0,127}$(?<!^host$)", RegexOptions.Compiled | RegexOptions.IgnoreCase);

public FunctionsController(IWebFunctionsManager functionsManager, WebScriptHostManager scriptHostManager, IWebJobsRouter webJobsRouter, ILoggerFactory loggerFactory)
public FunctionsController(IWebFunctionsManager functionsManager, IWebJobsRouter webJobsRouter, ILoggerFactory loggerFactory)
{
_functionsManager = functionsManager;
_scriptHostManager = scriptHostManager;
_webJobsRouter = webJobsRouter;
_logger = loggerFactory?.CreateLogger(ScriptConstants.LogCategoryFunctionsController);
}
Expand Down
5 changes: 3 additions & 2 deletions src/WebJobs.Script.WebHost/Controllers/HostController.cs
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,7 @@
using Microsoft.AspNetCore.Mvc;
using Microsoft.AspNetCore.Mvc.WebApiCompatShim;
using Microsoft.Azure.WebJobs.Host;
using Microsoft.Azure.WebJobs.Host.Executors;
using Microsoft.Azure.WebJobs.Script.WebHost.Authentication;
using Microsoft.Azure.WebJobs.Script.WebHost.Filters;
using Microsoft.Azure.WebJobs.Script.WebHost.Management;
Expand Down Expand Up @@ -53,14 +54,14 @@ public HostController(IOptions<ScriptWebHostOptions> webHostSettings,
[Route("admin/host/status")]
[Authorize(Policy = PolicyNames.AdminAuthLevelOrInternal)]
[TypeFilter(typeof(EnableDebugModeFilter))]
public IActionResult GetHostStatus([FromServices] IScriptHostManager scriptHostManager)
public async Task<IActionResult> GetHostStatus([FromServices] IScriptHostManager scriptHostManager, [FromServices] IHostIdProvider hostIdProvider)
{
var status = new HostStatus
{
State = scriptHostManager.State.ToString(),
Version = ScriptHost.Version,
VersionDetails = Utility.GetInformationalVersion(typeof(ScriptHost)),
Id = _hostOptions.Value.HostId
Id = await hostIdProvider.GetHostIdAsync(CancellationToken.None)
};

var lastError = scriptHostManager.LastError;
Expand Down
1 change: 0 additions & 1 deletion src/WebJobs.Script.WebHost/ScriptHostBuilderExtensions.cs
Original file line number Diff line number Diff line change
Expand Up @@ -97,7 +97,6 @@ public static IHostBuilder AddScriptHostCore(this IHostBuilder builder, IOptions
{
o.AppDirectory = webHostOptions.Value.ScriptPath;
})
.AddAzureStorage()
.AddHttp(o =>
{
o.SetResponse = HttpBinding.SetResponse;
Expand Down
361 changes: 0 additions & 361 deletions src/WebJobs.Script.WebHost/WebHostResolver.cs

This file was deleted.

6 changes: 3 additions & 3 deletions src/WebJobs.Script.WebHost/WebJobs.Script.WebHost.csproj
Original file line number Diff line number Diff line change
Expand Up @@ -47,11 +47,11 @@
<PackageReference Include="Autofac.Extensions.DependencyInjection" Version="4.2.0" />
<PackageReference Include="Microsoft.AspNetCore.App" Version="2.1.1" />
<PackageReference Include="Microsoft.AspNetCore.Buffering" Version="0.4.0-preview2-28189" />
<PackageReference Include="Microsoft.Azure.Functions.JavaWorker" Version="1.1.0-beta9" />
<PackageReference Include="Microsoft.Azure.AppService.Proxy.Client" Version="2.0.5350001-beta-fc119b98" />
<PackageReference Include="Microsoft.AspNetCore.Server.IIS" Version="2.1.0-a-oob-2-1-oob-17035" />
<PackageReference Include="Microsoft.Azure.WebJobs.Extensions.Storage" Version="3.0.0-beta7-11390" />
<PackageReference Include="Microsoft.Azure.WebJobs.Host.Storage" Version="3.0.0-beta7-11390" />
<PackageReference Include="Microsoft.Azure.WebJobs.Logging" Version="3.0.0-beta7-11390" />
<PackageReference Include="Microsoft.Azure.WebJobs.Host.Storage" Version="3.0.0-beta7-11395" />
<PackageReference Include="Microsoft.Azure.WebJobs.Logging" Version="3.0.0-beta7-11395" />
<PackageReference Include="Microsoft.Azure.WebSites.DataProtection" Version="2.1.88-alpha" />
<PackageReference Include="System.Net.Primitives" Version="4.3.0" />
<PackageReference Include="WindowsAzure.Storage" Version="8.6.0" />
Expand Down
283 changes: 0 additions & 283 deletions src/WebJobs.Script.WebHost/WebScriptHostManager.cs

This file was deleted.

Loading

0 comments on commit e63a1e0

Please sign in to comment.