#121 Rename UseIIS() to UseIISIntegration()

This commit is contained in:
Chris R 2016-04-07 11:26:31 -07:00
parent 7a923d1d6f
commit ee7bb86407
4 changed files with 8 additions and 8 deletions

View File

@ -77,7 +77,7 @@ namespace IISSample
var host = new WebHostBuilder()
.UseDefaultHostingConfiguration(args)
.UseKestrel()
.UseIIS()
.UseIISIntegration()
.UseStartup<Startup>()
.Build();

View File

@ -9,7 +9,7 @@ using Microsoft.Extensions.DependencyInjection;
namespace Microsoft.AspNetCore.Hosting
{
public static class IISWebHostExtensions
public static class WebHostBuilderIISExtensions
{
// These are defined as ASPNETCORE_ environment variables by IIS's AspNetCoreModule.
private static readonly string ServerPort = "PORT";
@ -22,7 +22,7 @@ namespace Microsoft.AspNetCore.Hosting
/// </summary>
/// <param name="app"></param>
/// <returns></returns>
public static IWebHostBuilder UseIIS(this IWebHostBuilder app)
public static IWebHostBuilder UseIISIntegration(this IWebHostBuilder app)
{
if (app == null)
{

View File

@ -23,7 +23,7 @@ namespace Microsoft.AspNetCore.Server.IISIntegration
var builder = new WebHostBuilder()
.UseSetting("PORT", "12345")
.UseSetting("APPL_PATH", "/")
.UseIIS()
.UseIISIntegration()
.Configure(app =>
{
app.Run(context =>
@ -51,7 +51,7 @@ namespace Microsoft.AspNetCore.Server.IISIntegration
.UseSetting("TOKEN", "TestToken")
.UseSetting("PORT", "12345")
.UseSetting("APPL_PATH", "/")
.UseIIS()
.UseIISIntegration()
.Configure(app =>
{
app.Run(context =>
@ -78,7 +78,7 @@ namespace Microsoft.AspNetCore.Server.IISIntegration
.UseSetting("TOKEN", "TestToken")
.UseSetting("PORT", "12345")
.UseSetting("APPL_PATH", "/")
.UseIIS()
.UseIISIntegration()
.Configure(app =>
{
app.Run(context =>
@ -109,7 +109,7 @@ namespace Microsoft.AspNetCore.Server.IISIntegration
.UseSetting("TOKEN", "TestToken")
.UseSetting("PORT", "12345")
.UseSetting("APPL_PATH", "/")
.UseIIS()
.UseIISIntegration()
.ConfigureServices(services =>
{
services.Configure<IISOptions>(options =>

View File

@ -11,7 +11,7 @@ namespace TestSites
{
var host = new WebHostBuilder()
.UseDefaultHostingConfiguration(args)
.UseIIS()
.UseIISIntegration()
.UseStartup("TestSites")
.UseKestrel()
.Build();