#121 Rename UseIIS() to UseIISIntegration()
This commit is contained in:
parent
7a923d1d6f
commit
ee7bb86407
|
|
@ -77,7 +77,7 @@ namespace IISSample
|
|||
var host = new WebHostBuilder()
|
||||
.UseDefaultHostingConfiguration(args)
|
||||
.UseKestrel()
|
||||
.UseIIS()
|
||||
.UseIISIntegration()
|
||||
.UseStartup<Startup>()
|
||||
.Build();
|
||||
|
||||
|
|
|
|||
|
|
@ -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)
|
||||
{
|
||||
|
|
@ -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 =>
|
||||
|
|
|
|||
|
|
@ -11,7 +11,7 @@ namespace TestSites
|
|||
{
|
||||
var host = new WebHostBuilder()
|
||||
.UseDefaultHostingConfiguration(args)
|
||||
.UseIIS()
|
||||
.UseIISIntegration()
|
||||
.UseStartup("TestSites")
|
||||
.UseKestrel()
|
||||
.Build();
|
||||
|
|
|
|||
Loading…
Reference in New Issue