Skip to content

Make IIS benchmarks work again #1415

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 12 commits into from
Sep 19, 2019
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion src/Benchmarks/Benchmarks.csproj
Original file line number Diff line number Diff line change
Expand Up @@ -67,7 +67,7 @@
<PackageReference Include="Microsoft.AspNetCore.Server.Kestrel.Transport.Libuv" Version="$(MicrosoftAspNetCoreAppPackageVersion)" />
<PackageReference Include="Microsoft.AspNetCore.Mvc.NewtonsoftJson" Version="$(MicrosoftAspNetCoreAppPackageVersion)" />

<!--<PackageReference Include="Microsoft.AspNetCore.Server.IntegrationTesting.IIS" Version="$(MicrosoftAspNetCoreAppPackageVersion)" />-->
<PackageReference Include="Microsoft.AspNetCore.Server.IntegrationTesting.IIS" Version="5.0.0-alpha1.19468.7" />

<FrameworkReference Update="Microsoft.AspNetCore.App" RuntimeFrameworkVersion="$(MicrosoftAspNetCoreAppPackageVersion)" />

Expand Down
20 changes: 10 additions & 10 deletions src/Benchmarks/Program.cs
Original file line number Diff line number Diff line change
Expand Up @@ -172,16 +172,16 @@ public static void Main(string[] args)
{
webHostBuilder = webHostBuilder.UseHttpSys();
}
//#if NETCOREAPP2_2 || NETCOREAPP3_0
// else if (String.Equals(Server, "IISInProcess", StringComparison.OrdinalIgnoreCase))
// {
// webHostBuilder = webHostBuilder.UseIIS();
// }
//#endif
// else if (String.Equals(Server, "IISOutOfProcess", StringComparison.OrdinalIgnoreCase))
// {
// webHostBuilder = webHostBuilder.UseKestrel().UseIISIntegration();
// }
#if NETCOREAPP2_2 || NETCOREAPP3_0
else if (String.Equals(Server, "IISInProcess", StringComparison.OrdinalIgnoreCase))
{
webHostBuilder = webHostBuilder.UseIIS();
}
#endif
else if (String.Equals(Server, "IISOutOfProcess", StringComparison.OrdinalIgnoreCase))
{
webHostBuilder = webHostBuilder.UseKestrel().UseIISIntegration();
}
else
{
throw new InvalidOperationException($"Unknown server value: {Server}");
Expand Down