Skip to content

Commit

Permalink
Merge pull request Azure#2593 from Azure/ExtensionRepo
Browse files Browse the repository at this point in the history
Bring latest Extension repo to Host. Change needed for Proxies.
  • Loading branch information
safihamid authored Mar 27, 2018
2 parents d95294e + d89885a commit 928d2f6
Show file tree
Hide file tree
Showing 3 changed files with 11 additions and 8 deletions.
4 changes: 2 additions & 2 deletions src/WebJobs.Script.WebHost/WebJobs.Script.WebHost.csproj
Original file line number Diff line number Diff line change
Expand Up @@ -38,8 +38,8 @@
<NoWarn>NU1701</NoWarn>
</PackageReference>
<PackageReference Include="Microsoft.Azure.WebJobs" Version="3.0.0-beta5" />
<PackageReference Include="Microsoft.Azure.WebJobs.Extensions" Version="3.0.0-beta5" />
<PackageReference Include="Microsoft.Azure.WebJobs.Extensions.Http" Version="3.0.0-beta5">
<PackageReference Include="Microsoft.Azure.WebJobs.Extensions" Version="3.0.0-beta5-10609" />
<PackageReference Include="Microsoft.Azure.WebJobs.Extensions.Http" Version="3.0.0-beta5-10609">
<NoWarn>NU1701</NoWarn>
</PackageReference>
<PackageReference Include="Microsoft.Azure.WebJobs.Logging" Version="3.0.0-beta5" />
Expand Down
11 changes: 7 additions & 4 deletions src/WebJobs.Script.WebHost/WebScriptHostManager.cs
Original file line number Diff line number Diff line change
Expand Up @@ -263,17 +263,20 @@ private void InitializeHttpFunctions(IEnumerable<FunctionDescriptor> functions,
}
}

// Proxy routes will take precedence over http trigger functions
// so they will be added first to the router.
IRouter proxyRouter = null;
IRouter functionRouter = null;

if (proxiesRoutesBuilder.Count > 0)
{
_router.AddFunctionRoute(proxiesRoutesBuilder.Build());
proxyRouter = proxiesRoutesBuilder.Build();
}

if (routesBuilder.Count > 0)
{
_router.AddFunctionRoute(routesBuilder.Build());
functionRouter = routesBuilder.Build();
}

_router.AddFunctionRoutes(functionRouter, proxyRouter);
}

public override void Shutdown()
Expand Down
4 changes: 2 additions & 2 deletions src/WebJobs.Script/WebJobs.Script.csproj
Original file line number Diff line number Diff line change
Expand Up @@ -26,8 +26,8 @@
<PrivateAssets>None</PrivateAssets>
</PackageReference>
<PackageReference Include="Microsoft.Azure.WebJobs" Version="3.0.0-beta5" />
<PackageReference Include="Microsoft.Azure.WebJobs.Extensions" Version="3.0.0-beta5" />
<PackageReference Include="Microsoft.Azure.WebJobs.Extensions.Http" Version="3.0.0-beta5">
<PackageReference Include="Microsoft.Azure.WebJobs.Extensions" Version="3.0.0-beta5-10609" />
<PackageReference Include="Microsoft.Azure.WebJobs.Extensions.Http" Version="3.0.0-beta5-10609">
<NoWarn>NU1701</NoWarn>
</PackageReference>
<PackageReference Include="Microsoft.Azure.WebJobs.Logging" Version="3.0.0-beta5" />
Expand Down

0 comments on commit 928d2f6

Please sign in to comment.